[Functest] Block daily job if healthcheck fails 75/43375/3
authorLinda Wang <wangwulin@huawei.com>
Thu, 28 Sep 2017 02:52:53 +0000 (02:52 +0000)
committerLinda Wang <wangwulin@huawei.com>
Thu, 28 Sep 2017 08:32:28 +0000 (08:32 +0000)
Change-Id: I3ec48bd337f8dc9100ff82f53067954925245dfa
Signed-off-by: Linda Wang <wangwulin@huawei.com>
jjb/functest/functest-alpine.sh

index 8ede529..9a415ff 100755 (executable)
@@ -19,7 +19,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
 }