Additional logging 74/10074/1
authorbeierlm <mark.beierl@canonical.com>
Thu, 3 Dec 2020 14:28:28 +0000 (09:28 -0500)
committerbeierlm <mark.beierl@canonical.com>
Thu, 3 Dec 2020 14:28:28 +0000 (09:28 -0500)
Changes output to emit the actual status.
Outputs the result of the osm vim-list command.

Change-Id: Iaf01715193383b6a6bcee839f26095bf2ccdde77
Signed-off-by: beierlm <mark.beierl@canonical.com>
robot-systest/run_test.sh

index b4803d3..33268e6 100755 (executable)
@@ -52,13 +52,15 @@ create_vim(){
         do
             ((i++))
             if [[ $i -eq 5 ]]; then
-                echo "VIM stuck in PROCESSING after 50 seconds"
+                echo "VIM stuck in ${STATUS} after 50 seconds"
                 osm vim-delete --force ${VIM_TARGET}
                 sleep 5
                 break
             fi
             sleep 10
-            STATUS=`osm vim-list --long | grep ${VIM_TARGET} | awk '{print $9}'`
+            VIM_LIST=`osm vim-list --long | grep ${VIM_TARGET}`
+            echo VIM status: ${VIM_LIST}
+            STATUS=`echo ${VIM_LIST} | awk '{print $9}'`
         done
         if [[ ${STATUS} = "ENABLED" ]] ; then
             break