Lower sleep times during controller startup
[integration/test.git] / csit / suites / sxp / scripts / tools_node_setup.sh
index 715f0c19427b55024a75ff629738fd63824fa19c..18883a7d75dea911cd7b19460e5d15deee35ac1e 100755 (executable)
@@ -2,7 +2,7 @@
 TOOLS_WORK_DIR="/tmp"
 
 echo "Extracting the new controller... [${TOOLS_SYSTEM_IP}]"
-ssh ${TOOLS_SYSTEM_IP} wget --progress=dot:mega ${ACTUALBUNDLEURL} -P ${TOOLS_WORK_DIR}
+ssh ${TOOLS_SYSTEM_IP} wget --progress=dot:mega ${ACTUAL_BUNDLE_URL} -P ${TOOLS_WORK_DIR}
 ssh ${TOOLS_SYSTEM_IP} unzip -q ${TOOLS_WORK_DIR}/${BUNDLE} -d ${TOOLS_WORK_DIR}
 
 echo "Set Java version"
@@ -37,8 +37,10 @@ while true; do
         echo Timeout Controller DOWN
         exit 1
     else
-        COUNT=$(( ${COUNT} + 5 ))
-        sleep 5
-        echo waiting ${COUNT} secs...
+        COUNT=$(( ${COUNT} + 1 ))
+        sleep 1
+        if [[ $(($COUNT % 5)) == 0 ]]; then
+            echo already waited ${COUNT} seconds...
+        fi
     fi
-done
\ No newline at end of file
+done