3 # to be run on testmaster in a buildname/
5 if [ "$1" == "-o" ] ; then
10 extra_message="logdir=$logdir"
13 [[ -n "$@" ]] && iterations=$1 || iterations=10
15 buildname=$(basename $(pwd))
17 echo "buildname=$buildname, $iterations iterations" $extra_message
19 for attempt in $(seq $iterations); do
21 attempt=$(printf "%02d" $attempt)
23 echo ======================================== attempt $attempt
25 run qemu-kill-mine >& /dev/null
27 ssh boxtops rm /vservers/$buildname/\*/log.txt
31 run qemu-start >& /dev/null
35 run ping-node >& /dev/null && msg=OK || msg=KO
37 log=$buildname-$attempt-$msg.log.txt
38 rsync boxtops:/vservers/$buildname/\*/log.txt $log
40 if [ -n "$logdir" ] ; then
45 echo ==================== attempt $attempt $msg - see $log