Stop the job and quit with error if a test case fails 13/15113/1
authorjose.lausuch <jose.lausuch@ericsson.com>
Thu, 2 Jun 2016 20:26:03 +0000 (22:26 +0200)
committerjose.lausuch <jose.lausuch@ericsson.com>
Thu, 2 Jun 2016 20:26:03 +0000 (22:26 +0200)
JIRA: FUNCTEST-282

Change-Id: I9fd638c19333772040481140f9e2324b7d80772f
Signed-off-by: jose.lausuch <jose.lausuch@ericsson.com>
ci/exec_test.sh

index 2916397..2269aa7 100755 (executable)
@@ -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
 }