diff options
Diffstat (limited to 'common/scripts/include/sh-test-lib')
-rwxr-xr-x | common/scripts/include/sh-test-lib | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/common/scripts/include/sh-test-lib b/common/scripts/include/sh-test-lib index 5c1e4a1..3d6fc93 100755 --- a/common/scripts/include/sh-test-lib +++ b/common/scripts/include/sh-test-lib @@ -75,8 +75,10 @@ check_return() { if [ "${exit_code}" -ne 0 ]; then echo "${test} fail" | tee -a "${RESULT_FILE}" + return 1 else echo "${test} pass" | tee -a "${RESULT_FILE}" + return 0 fi } |