From 5c7bb2ed518f664e2168dcbf70577288fffc9cf3 Mon Sep 17 00:00:00 2001 From: "jose.lausuch" Date: Thu, 2 Jun 2016 22:26:03 +0200 Subject: Stop the job and quit with error if a test case fails JIRA: FUNCTEST-282 Change-Id: I9fd638c19333772040481140f9e2324b7d80772f Signed-off-by: jose.lausuch --- ci/exec_test.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/ci/exec_test.sh b/ci/exec_test.sh index 29163971..2269aa7f 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 } -- cgit 1.2.3-korg