diff options
author | Chase Qi <chase.qi@linaro.org> | 2015-04-10 04:21:06 +0000 |
---|---|---|
committer | Chase Qi <chase.qi@linaro.org> | 2015-04-10 04:21:11 +0000 |
commit | a40f022cabe1a6e4b89c0775f02023b77aa607d7 (patch) | |
tree | 58aaec40db5c5c71fb2ce3007e40ff3823987b1c /common | |
parent | b54913f7cb6f58362b09c7e1ca611512dde53106 (diff) |
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 <chase.qi@linaro.org>
Diffstat (limited to 'common')
-rwxr-xr-x | common/scripts/kselftest-runner.sh | 2 |
1 files changed, 2 insertions, 0 deletions
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; |