summaryrefslogtreecommitdiff
path: root/common
diff options
context:
space:
mode:
authorChase Qi <chase.qi@linaro.org>2015-04-10 04:21:06 +0000
committerChase Qi <chase.qi@linaro.org>2015-04-10 04:21:11 +0000
commita40f022cabe1a6e4b89c0775f02023b77aa607d7 (patch)
tree58aaec40db5c5c71fb2ce3007e40ff3823987b1c /common
parentb54913f7cb6f58362b09c7e1ca611512dde53106 (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-xcommon/scripts/kselftest-runner.sh2
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;