From 4b5452457ae83b4a6dc3f166926f9958dcd02447 Mon Sep 17 00:00:00 2001 From: Mark Beierl Date: Wed, 15 Jul 2020 14:50:22 -0400 Subject: [PATCH] Fixing Logic Breaks out of the loop once the vim is enabled Change-Id: I2b8b6faeb7aa599a286ecc51155653b7d87ec52d Signed-off-by: Mark Beierl --- robot-systest/run_test.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/robot-systest/run_test.sh b/robot-systest/run_test.sh index e8a02db..a279ff0 100755 --- a/robot-systest/run_test.sh +++ b/robot-systest/run_test.sh @@ -54,6 +54,9 @@ create_vim(){ sleep 10 STATUS=`osm vim-list --long | grep ${VIM_TARGET} | awk '{print $9}'` done + if [[ ${STATUS} = "ENABLED" ]] ; then + break + fi ((attempts--)) done -- 2.25.1