test.sh: write test result to log for easier grepping

Closes: #394
Approved by: cgwalters
This commit is contained in:
Jonathan Lebon 2016-07-14 20:10:47 -04:00 committed by Atomic Bot
parent ab6fe314aa
commit 8942268ecb

View File

@ -91,13 +91,16 @@ for tf in $(find . -name 'test-*.sh' | sort); do
| grep -e '^ok ' --line-buffered \
| xargs -d '\n' -n 1 echo " "; then
pass_print "PASS: $bn"
echo "PASS" >> ${LOG}
let "pass += 1"
else
if test $? = 77; then
skip_print "SKIP: $bn"
echo "SKIP" >> ${LOG}
let "skip += 1"
else
fail_print "FAIL: $bn"
echo "FAIL" >> ${LOG}
let "fail += 1"
fi
fi