Get actually failed tests from tests.sum

This commit is contained in:
Siddhesh Poyarekar 2014-07-03 22:18:36 +05:30
parent 2a7ce8ad67
commit c1d88db4f5

View File

@ -1256,7 +1256,11 @@ pushd build-%{target}
teepid="`ps -eo ppid,pid,command | awk '($1 == '${parent}' && $3 ~ /^tee/) { print $2 }'`" teepid="`ps -eo ppid,pid,command | awk '($1 == '${parent}' && $3 ~ /^tee/) { print $2 }'`"
[ -n "$teepid" ] && kill $teepid [ -n "$teepid" ] && kill $teepid
) | tee check.log || : ) | tee check.log || :
find . -name '*.test-result' | xargs cat; echo ===================FAILED TESTS=====================
grep -e ^FAIL -e ^ERROR tests.sum | awk '{print $2}' | while read testcase; do
echo "$testcase"
cat $testcase.out
done
popd popd
############################################################################## ##############################################################################
@ -1270,7 +1274,11 @@ pushd build-%{target}-nosegneg
teepid="`ps -eo ppid,pid,command | awk '($1 == '${parent}' && $3 ~ /^tee/) { print $2 }'`" teepid="`ps -eo ppid,pid,command | awk '($1 == '${parent}' && $3 ~ /^tee/) { print $2 }'`"
[ -n "$teepid" ] && kill $teepid [ -n "$teepid" ] && kill $teepid
) | tee check.log || : ) | tee check.log || :
find . -name '*.test-result' | xargs cat; echo ===================FAILED TESTS=====================
grep -e ^FAIL -e ^ERROR tests.sum | awk '{print $2}' | while read testcase; do
echo "$testcase"
cat $testcase.out
done
popd popd
%endif %endif
@ -1288,7 +1296,12 @@ pushd build-%{target}-power6
teepid="`ps -eo ppid,pid,command | awk '($1 == '${parent}' && $3 ~ /^tee/) { print $2 }'`" teepid="`ps -eo ppid,pid,command | awk '($1 == '${parent}' && $3 ~ /^tee/) { print $2 }'`"
[ -n "$teepid" ] && kill $teepid [ -n "$teepid" ] && kill $teepid
) | tee check.log || : ) | tee check.log || :
find . -name '*.test-result' | xargs cat; echo ===================FAILED TESTS=====================
grep -e ^FAIL -e ^ERROR tests.sum | awk '{print $2}' | while read testcase; do
echo "$testcase"
cat $testcase.out
echo -------------------------
done
popd popd
%endif %endif
echo ====================TESTING DETAILS================= echo ====================TESTING DETAILS=================