From: jose.lausuch Date: Thu, 2 Jun 2016 20:26:03 +0000 (+0200) Subject: Stop the job and quit with error if a test case fails X-Git-Tag: colorado.1.0~352 X-Git-Url: https://gerrit.opnfv.org/gerrit/gitweb?a=commitdiff_plain;h=refs%2Fchanges%2F13%2F15113%2F1;p=functest.git Stop the job and quit with error if a test case fails JIRA: FUNCTEST-282 Change-Id: I9fd638c19333772040481140f9e2324b7d80772f Signed-off-by: jose.lausuch --- 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 }