mirror of
https://github.com/Telecominfraproject/OpenCellular.git
synced 2025-11-26 19:25:02 +00:00
Output stderr when run_test_scripts.sh fail
This change makes run_test_scripts.sh dump stderr to the terminal so that the failed test can be debugged. This is necessary to analyze a failing test on build servers. BUG=none BRANCH=none TEST=sudo FEATURES=test emerge vboot_reference && FEATURES=test USE=minimal emerge-samus vboot_reference && make runtests Change-Id: Id9ae0fb174cfe382ec30a1175f54c0891543c46e Signed-off-by: Daisuke Nojiri <dnojiri@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/403428 Reviewed-by: Randall Spangler <rspangler@chromium.org>
This commit is contained in:
committed by
chrome-bot
parent
5a9f498182
commit
754ebdb8c3
@@ -70,23 +70,23 @@ exec 3>&1
|
||||
|
||||
echo "-- builtin --"
|
||||
for i in $TESTS; do
|
||||
j=${i##*/}
|
||||
j=${i##*/}
|
||||
|
||||
: $(( progs++ ))
|
||||
|
||||
echo -n "$j ... "
|
||||
rm -rf "${OUTDIR}/$j."*
|
||||
rc=$("$i" "$FUTILITY" 1>"${OUTDIR}/$j.stdout" \
|
||||
2>"${OUTDIR}/$j.stderr" || echo "$?")
|
||||
echo "${rc:-0}" > "${OUTDIR}/$j.return"
|
||||
if [ ! "$rc" ]; then
|
||||
green "passed"
|
||||
: $(( pass++ ))
|
||||
rm -f ${OUTDIR}/$j.{stdout,stderr,return}
|
||||
else
|
||||
red "failed"
|
||||
fi
|
||||
: $(( progs++ ))
|
||||
|
||||
echo -n "$j ... "
|
||||
rm -rf "${OUTDIR}/$j."*
|
||||
rc=$("$i" "$FUTILITY" 1>"${OUTDIR}/$j.stdout" \
|
||||
2>"${OUTDIR}/$j.stderr" || echo "$?")
|
||||
echo "${rc:-0}" > "${OUTDIR}/$j.return"
|
||||
if [ ! "$rc" ]; then
|
||||
green "PASSED"
|
||||
: $(( pass++ ))
|
||||
rm -f ${OUTDIR}/$j.{stdout,stderr,return}
|
||||
else
|
||||
red "FAILED. Stdout is recorded in ${OUTDIR}/$j.stdout"
|
||||
cat ${OUTDIR}/$j.stderr
|
||||
fi
|
||||
done
|
||||
|
||||
##############################################################################
|
||||
|
||||
Reference in New Issue
Block a user