set AUTOBUILD_RANDOM_SLEEP_OVERRIDE=<x>
to the number x of seconds that you want to sleep.
This is added to make it possible to run one autobuild
target without having to wait for several minutes.
Signed-off-by: Michael Adam <obnox@samba.org>
Signed-off-by: Stefan Metzmacher <metze@samba.org>
v=$(expr $r % $s)
d=$(expr $l + $v)
+if test "x${AUTOBUILD_RANDOM_SLEEP_OVERRIDE}" != "x" ; then
+ d="${AUTOBUILD_RANDOM_SLEEP_OVERRIDE}"
+fi
+
echo "$0: sleep $d ... start"
sleep $d
echo "$0: sleep $d ... end"