]> git.sur5r.net Git - bacula/bacula/commitdiff
regress: ensure to leave the script when the reload command is ok
authorEric Bollengier <eric@eb.homelinux.org>
Wed, 8 Dec 2010 10:03:32 +0000 (11:03 +0100)
committerKern Sibbald <kern@sibbald.com>
Sat, 20 Apr 2013 12:39:46 +0000 (14:39 +0200)
regress/scripts/setup_win32

index 3bf4386f210ca1fcd9de956947abd066b8e88c12..7e9e20c05f56b4ea44e0d2a3987f7fa610636107 100755 (executable)
@@ -25,3 +25,13 @@ wget -qO /dev/null "$URL/start"
 
 echo -ne "Reloading regress-win32.pl:\t"
 wget -qO - "$URL/reload"
+
+i=0
+while ! wget -qO /dev/null $URL/nop; do
+    sleep 5
+    i=`expr $i + 1`
+    if [ $i -ge 12 ]; then  # print message every minute
+       i=0
+       echo "== `date +%T` Waiting for script to reload"
+    fi
+done