Report skipped, failed and timed out tests.
This commit is contained in:
parent
9e6581b0ff
commit
467709ff38
|
@ -1,11 +1,21 @@
|
|||
#!/bin/sh
|
||||
failed=$(find "$@" ! -size 0)
|
||||
notsucceeding=$(find "$@" ! -size 0)
|
||||
echo ""
|
||||
echo "$(echo $failed | wc -w) failed tests"
|
||||
echo "$(echo $notsucceeding | wc -w) tests failed to pass"
|
||||
|
||||
skipped=$(grep -l @@SKIPPED $notsucceeding)
|
||||
echo "$(echo $skipped | wc -w) were skipped (see build log for details)"
|
||||
|
||||
timedout=$(grep -l @@TIMEDOUT $notsucceeding)
|
||||
echo "$(echo $timedout | wc -w) timed out"
|
||||
|
||||
failed=$(grep -l @@FAIL $notsucceeding)
|
||||
echo "$(echo $failed | wc -w) failed"
|
||||
|
||||
echo ""
|
||||
for a in $failed; do
|
||||
for a in $failed $timedout; do
|
||||
echo "**** $a"
|
||||
cat $a
|
||||
echo ""
|
||||
done
|
||||
exec test "$failed" == ""
|
||||
exec test "$failed" == "" -o "$timedout" == ""
|
||||
|
|
|
@ -18,7 +18,7 @@ get_test_output() {
|
|||
qemu-system-*)
|
||||
if ! command -v $method >/dev/null 2>&1 ; then
|
||||
errcho "Warning: $method not installed, skipping test"
|
||||
echo "@@SKIPPED" > $result
|
||||
echo "@@SKIPPED"
|
||||
exit 0
|
||||
fi
|
||||
|
||||
|
@ -33,7 +33,7 @@ get_test_output() {
|
|||
qemu-*)
|
||||
if ! command -v $method >/dev/null 2>&1 ; then
|
||||
errcho "Warning: $method not installed, skipping test"
|
||||
echo "@@SKIPPED" > $result
|
||||
echo "@@SKIPPED"
|
||||
exit 0
|
||||
fi
|
||||
|
||||
|
|
Loading…
Reference in a new issue