Mark skipped tests in the logs (so we can get stats on them later).
This commit is contained in:
parent
8c99e2b7ad
commit
9e6581b0ff
|
@ -18,6 +18,7 @@ get_test_output() {
|
||||||
qemu-system-*)
|
qemu-system-*)
|
||||||
if ! command -v $method >/dev/null 2>&1 ; then
|
if ! command -v $method >/dev/null 2>&1 ; then
|
||||||
errcho "Warning: $method not installed, skipping test"
|
errcho "Warning: $method not installed, skipping test"
|
||||||
|
echo "@@SKIPPED" > $result
|
||||||
exit 0
|
exit 0
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
@ -32,6 +33,7 @@ get_test_output() {
|
||||||
qemu-*)
|
qemu-*)
|
||||||
if ! command -v $method >/dev/null 2>&1 ; then
|
if ! command -v $method >/dev/null 2>&1 ; then
|
||||||
errcho "Warning: $method not installed, skipping test"
|
errcho "Warning: $method not installed, skipping test"
|
||||||
|
echo "@@SKIPPED" > $result
|
||||||
exit 0
|
exit 0
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
@ -46,5 +48,5 @@ get_test_output() {
|
||||||
}
|
}
|
||||||
|
|
||||||
get_test_output
|
get_test_output
|
||||||
( grep -q @@FAIL $result || ! grep -q @@FINISHED $result ) && cat $result && exit 1
|
( grep -q '@@FAIL\|@@SKIPPED' $result || ! grep -q @@FINISHED $result ) && cat $result && exit 1
|
||||||
exit 0
|
exit 0
|
||||||
|
|
Loading…
Reference in a new issue