Further fixes to error check... 69/20969/1
authorblsaws <bryan.sullivan@att.com>
Tue, 13 Sep 2016 05:15:56 +0000 (22:15 -0700)
committerblsaws <bryan.sullivan@att.com>
Tue, 13 Sep 2016 05:15:56 +0000 (22:15 -0700)
JIRA: MODELS-23

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

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