aboutsummaryrefslogtreecommitdiffstats
path: root/ci
diff options
context:
space:
mode:
authorjose.lausuch <jose.lausuch@ericsson.com>2016-06-02 22:26:03 +0200
committerjose.lausuch <jose.lausuch@ericsson.com>2016-06-02 22:26:03 +0200
commit5c7bb2ed518f664e2168dcbf70577288fffc9cf3 (patch)
treedf0d9f39109a58a8981a186373db33e7b1987bef /ci
parent2d77ecdfe55a6cd20615fd9e5ddef96fecca20f7 (diff)
Stop the job and quit with error if a test case fails
JIRA: FUNCTEST-282 Change-Id: I9fd638c19333772040481140f9e2324b7d80772f Signed-off-by: jose.lausuch <jose.lausuch@ericsson.com>
Diffstat (limited to 'ci')
-rwxr-xr-xci/exec_test.sh4
1 files changed, 4 insertions, 0 deletions
diff --git a/ci/exec_test.sh b/ci/exec_test.sh
index 291639715..2269aa7f9 100755
--- a/ci/exec_test.sh
+++ b/ci/exec_test.sh
@@ -141,6 +141,10 @@ function run_test(){
echo "The test case '${test_name}' does not exist."
exit 1
esac
+
+ if [[ $? != 0 ]]; then exit 1
+ else exit 0
+ fi
}