diff options
author | Chase Qi <chase.qi@linaro.org> | 2016-08-09 21:26:21 +0800 |
---|---|---|
committer | Chase Qi <chase.qi@linaro.org> | 2016-08-11 15:56:09 +0800 |
commit | 74da641c0eec6cd4a29af5cc944fb60525c02a04 (patch) | |
tree | 586306b27081d3b055622cfcb5a16bf087b61850 /common/scripts/include/sh-test-lib | |
parent | f6eca3dd9986995047f6d5813c3c7d81692df554 (diff) |
common: add disk partitioning test
Change-Id: If8a024b0e4290a40a7de6f7c2cb848b3ec77ff30
Signed-off-by: Chase Qi <chase.qi@linaro.org>
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 } |