From: blsaws Date: Tue, 13 Sep 2016 05:25:01 +0000 (-0700) Subject: One more fix to error check X-Git-Url: https://gerrit.opnfv.org/gerrit/gitweb?a=commitdiff_plain;h=3d656a8c5d3c015fd87252117ad821ef03dee556;p=models.git One more fix to error check JIRA: MODELS-23 Change-Id: I04d91542f580174de3900054861dcbb517416c1b Signed-off-by: blsaws --- diff --git a/tests/vHello_Tacker.sh b/tests/vHello_Tacker.sh index 31471e6..dd291ed 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 [ $(tacker vnf-show hello-world-tacker | grep -c ERROR) > 0 ]; then + if [ "$(tacker vnf-show hello-world-tacker | grep -c ERROR)" == "1" ]; then echo "$0: hello-world-tacker VNF creation failed with state ERROR" fail fi