From 9e6581b0ff4505ff62cf4aafa536ddf3d63f490c Mon Sep 17 00:00:00 2001 From: David Given Date: Thu, 1 Dec 2016 23:14:29 +0100 Subject: [PATCH] Mark skipped tests in the logs (so we can get stats on them later). --- tests/plat/testdriver.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tests/plat/testdriver.sh b/tests/plat/testdriver.sh index 6c421f798..a0fed5686 100755 --- a/tests/plat/testdriver.sh +++ b/tests/plat/testdriver.sh @@ -18,6 +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 exit 0 fi @@ -32,6 +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 exit 0 fi @@ -46,5 +48,5 @@ 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