From: blsaws Date: Tue, 13 Sep 2016 05:15:56 +0000 (-0700) Subject: Further fixes to error check... X-Git-Url: https://gerrit.opnfv.org/gerrit/gitweb?a=commitdiff_plain;h=ad0824f422baf03b9fec8e7b0d330c0799e0da47;p=models.git Further fixes to error check... JIRA: MODELS-23 Change-Id: I767fdf6d2bc0a42b5b3252fa172349a0448cef8c Signed-off-by: blsaws --- diff --git a/tests/vHello_Tacker.sh b/tests/vHello_Tacker.sh index 26ac88b..31471e6 100644 --- a/tests/vHello_Tacker.sh +++ b/tests/vHello_Tacker.sh @@ -81,7 +81,7 @@ start() { while [[ -z $active ]] do active=$(tacker vnf-show hello-world-tacker | grep ACTIVE) - if [ ! -z $(tacker vnf-show hello-world-tacker | grep ERROR) ]; then + if [ $(tacker vnf-show hello-world-tacker | grep -c ERROR) > 0 ]; then echo "$0: hello-world-tacker VNF creation failed with state ERROR" fail fi