diff options
author | Chase Qi <chase.qi@linaro.org> | 2015-04-09 08:15:54 +0000 |
---|---|---|
committer | Chase Qi <chase.qi@linaro.org> | 2015-04-09 08:15:59 +0000 |
commit | b54913f7cb6f58362b09c7e1ca611512dde53106 (patch) | |
tree | f2e373b33e4876aec282cbeab8d582396fd1cf3c | |
parent | da02c65c2e98854514d31491b49e8010fe1a1b46 (diff) |
android/common: clean exit so that LAVA can trust test results
lava-test-shell-run is used to detect if the lava-test-shell finshed
successfully. If the exit code of test case is nonzero, even all tests
finished normally, lava-test-shell-run test will fail.
Change-Id: If4c8266ccdfcb78ac99dd7bc4288601454e7af6b
Signed-off-by: Chase Qi <chase.qi@linaro.org>
-rwxr-xr-x | android/scripts/busybox.sh | 3 | ||||
-rwxr-xr-x | android/scripts/media_codecs_functional_tests.sh | 3 | ||||
-rwxr-xr-x | common/scripts/kselftest-runner.sh | 2 |
3 files changed, 8 insertions, 0 deletions
diff --git a/android/scripts/busybox.sh b/android/scripts/busybox.sh index 10dc2b1..06c756c 100755 --- a/android/scripts/busybox.sh +++ b/android/scripts/busybox.sh @@ -55,3 +55,6 @@ test_func dmesg test_func grep service /init.rc rm -r /data/busybox 1>/dev/null 2>/dev/null + +# clean exit so that lava-test-shell can trust the results +exit 0 diff --git a/android/scripts/media_codecs_functional_tests.sh b/android/scripts/media_codecs_functional_tests.sh index 1ffbc22..66421e6 100755 --- a/android/scripts/media_codecs_functional_tests.sh +++ b/android/scripts/media_codecs_functional_tests.sh @@ -33,3 +33,6 @@ test_func(){ } test_func + +# clean exit so that lava-test-shell can trust the results +exit 0 diff --git a/common/scripts/kselftest-runner.sh b/common/scripts/kselftest-runner.sh index 6220051..7318db5 100755 --- a/common/scripts/kselftest-runner.sh +++ b/common/scripts/kselftest-runner.sh @@ -22,3 +22,5 @@ do [ "${test}" -a "${result}" ] && echo "${test}: ${result}" && unset test && unset result done < ${LOG} +# clean exit so that lava-test-shell can trust the results +exit 0 |