Merge "[Functest] Block daily job if healthcheck fails"
authorMorgan Richomme <morgan.richomme@orange.com>
Thu, 28 Sep 2017 09:16:31 +0000 (09:16 +0000)
committerGerrit Code Review <gerrit@opnfv.org>
Thu, 28 Sep 2017 09:16:31 +0000 (09:16 +0000)
jjb/functest/functest-alpine.sh

index fdc3481..ffd86f8 100755 (executable)
@@ -20,7 +20,11 @@ run_tiers() {
         eval ${cmd}
         ret_value=$?
         if [ ${ret_value} != 0 ]; then
-          echo ${ret_value} > ${ret_val_file}
+            echo ${ret_value} > ${ret_val_file}
+            if [ ${tier} == 'healthcheck' ]; then
+                echo "Healthcheck tier failed. Exiting Functest..."
+                exit 1
+            fi
         fi
     done
 }