summaryrefslogtreecommitdiff
path: root/common/scripts/include
diff options
context:
space:
mode:
Diffstat (limited to 'common/scripts/include')
-rwxr-xr-xcommon/scripts/include/sh-test-lib2
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
}