One more fix to error check 71/20971/1
authorblsaws <bryan.sullivan@att.com>
Tue, 13 Sep 2016 05:25:01 +0000 (22:25 -0700)
committerblsaws <bryan.sullivan@att.com>
Tue, 13 Sep 2016 05:25:01 +0000 (22:25 -0700)
JIRA: MODELS-23

Change-Id: I04d91542f580174de3900054861dcbb517416c1b
Signed-off-by: blsaws <bryan.sullivan@att.com>
tests/vHello_Tacker.sh

index 31471e6..dd291ed 100644 (file)
@@ -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