From 741f53adc24fa26eb6726964b28b412ad5bda107 Mon Sep 17 00:00:00 2001 From: Eric Bollengier Date: Wed, 8 Dec 2010 11:03:32 +0100 Subject: [PATCH] regress: ensure to leave the script when the reload command is ok --- regress/scripts/setup_win32 | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/regress/scripts/setup_win32 b/regress/scripts/setup_win32 index 3bf4386f21..7e9e20c05f 100755 --- a/regress/scripts/setup_win32 +++ b/regress/scripts/setup_win32 @@ -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 -- 2.39.5