From a40f022cabe1a6e4b89c0775f02023b77aa607d7 Mon Sep 17 00:00:00 2001 From: Chase Qi Date: Fri, 10 Apr 2015 04:21:06 +0000 Subject: common: fix kselftest result missing If one of kselftest sub-tests failed, the main test item, like net or vm, test result will missing. Add test failure check to fix this issue. Change-Id: I758525ed611f1719c4b769ba786195d98bd3cbea Signed-off-by: Chase Qi --- common/scripts/kselftest-runner.sh | 2 ++ 1 file changed, 2 insertions(+) (limited to 'common') diff --git a/common/scripts/kselftest-runner.sh b/common/scripts/kselftest-runner.sh index 7318db5..3cfd0db 100755 --- a/common/scripts/kselftest-runner.sh +++ b/common/scripts/kselftest-runner.sh @@ -13,6 +13,8 @@ if [ -n "`grep \"skip\" ${LOG}`" ]; then echo "${TEST_NAME}: [SKIP]"; elif [ -z "`grep \"SKIP\|FAIL\" ${LOG}`" ]; then echo "${TEST_NAME}: [PASS]" +elif [ -n "`grep \"FAIL\" ${LOG}`" ]; then + echo "${TEST_NAME}: [FAIL]" fi while read l; -- cgit v1.2.3