Commit f6153700 authored by Paul E. McKenney's avatar Paul E. McKenney

torture: Retry download once before giving up

Currently, a transient network error can kill a run if it happens while
downloading the tarball to one of the target systems.  This commit
therefore does a 60-second wait and then a retry.  If further experience
indicates, a more elaborate mechanism might be used later.
Signed-off-by: default avatarPaul E. McKenney <paulmck@kernel.org>
parent c06354a1
...@@ -157,8 +157,15 @@ do ...@@ -157,8 +157,15 @@ do
ret=$? ret=$?
if test "$ret" -ne 0 if test "$ret" -ne 0
then then
echo Unable to download $T/binres.tgz to system $i, giving up. | tee -a "$oldrun/remote-log" echo Unable to download $T/binres.tgz to system $i, waiting and then retrying. | tee -a "$oldrun/remote-log"
exit 10 | tee -a "$oldrun/remote-log" sleep 60
cat $T/binres.tgz | ssh $i "cd /tmp; tar -xzf -"
ret=$?
if test "$ret" -ne 0
then
echo Unable to download $T/binres.tgz to system $i, giving up. | tee -a "$oldrun/remote-log"
exit 10
fi
fi fi
done done
......
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