Commit 4bdfa56c authored by Nils Goroll's avatar Nils Goroll

vtest: optionally limit the number of runs

This allows unattended updates of vtest.sh itself by looping externally
parent b75d595d
......@@ -44,6 +44,7 @@ WAITPERIOD=60 # unit: Seconds
WAITGOOD=60 # unit: WAITPERIOD
WAITBAD=1 # unit: WAITPERIOD
MAXRUNS="${MAXRUNS:-0}"
SSH_DST="-p 203 vtest@varnish-cache.org"
......@@ -125,9 +126,12 @@ fi
orev=000
waitnext=${WAITBAD}
i=0
while true
while [ $MAXRUNS -eq 0 ] || [ $i -lt $MAXRUNS ]
do
i=`expr $i + 1`
(cd varnish-cache && git pull > /dev/null 2>&1 || true)
rev=`cd varnish-cache && git show -s --pretty=format:%H`
if [ "${waitnext}" -gt 0 -a "x${rev}" = "x${orev}" ] ; then
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment