From ad0824f422baf03b9fec8e7b0d330c0799e0da47 Mon Sep 17 00:00:00 2001 From: blsaws Date: Mon, 12 Sep 2016 22:15:56 -0700 Subject: Further fixes to error check... JIRA: MODELS-23 Change-Id: I767fdf6d2bc0a42b5b3252fa172349a0448cef8c Signed-off-by: blsaws --- tests/vHello_Tacker.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests/vHello_Tacker.sh') 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 -- cgit 1.2.3-korg