From b54913f7cb6f58362b09c7e1ca611512dde53106 Mon Sep 17 00:00:00 2001 From: Chase Qi Date: Thu, 9 Apr 2015 08:15:54 +0000 Subject: 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 --- android/scripts/busybox.sh | 3 +++ android/scripts/media_codecs_functional_tests.sh | 3 +++ common/scripts/kselftest-runner.sh | 2 ++ 3 files changed, 8 insertions(+) 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 -- cgit v1.2.3