From: Thierry Parmentelat Date: Fri, 6 Mar 2015 10:12:37 +0000 (+0100) Subject: a utility script for hammering on the ping-node step X-Git-Tag: tests-5.3-10~12 X-Git-Url: http://git.onelab.eu/?p=tests.git;a=commitdiff_plain;h=ee5f23944217c23a2432e0f3dd9fa117f6c52308 a utility script for hammering on the ping-node step --- diff --git a/system/iterate-ping-node b/system/iterate-ping-node new file mode 100755 index 0000000..e9c74dc --- /dev/null +++ b/system/iterate-ping-node @@ -0,0 +1,34 @@ +#!/bin/bash + +# do be run on testmaster in a buildname/ + +[[ -n "$@" ]] && iterations=$1 || iterations=10 + +buildname=$(basename $(pwd)) + +echo buildname=$buildname, $iterations iterations + +for attempt in $(seq $iterations); do + + attempt=$(printf "%02d" $attempt) + + echo ======================================== attempt $attempt + + run qemu-kill-mine >& /dev/null + echo KILLED + ssh boxtops rm /vservers/$buildname/\*/log.txt + echo CLEANED +# run qemu-list-mine + sleep 5 + run qemu-start >& /dev/null + echo RESTARTED +# run qemu-list-mine + sleep 40 + run ping-node >& /dev/null && msg=OK || msg=KO + + log=$buildname-$attempt-$msg.log.txt + rsync boxtops:/vservers/$buildname/\*/log.txt $log + + echo ==================== attempt $attempt $msg - see $log + +done