This is an automated email from the git hooks/post-receive script.
bernie.ogden pushed a commit to branch bernie/jenkmarking-multinode in repository toolchain/abe.
commit 1447bf4f3ee9004f4ec6e049475180beedb5d12a Author: Bernard Ogden bernie.ogden@linaro.org Date: Tue Jul 28 10:43:34 2015 +0200
Terminate ping loop when host receives the ping
Change-Id: I4d5eecff29b9e6869c59102d1a7748954fe5b1ed --- scripts/runbenchmark.sh | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-)
diff --git a/scripts/runbenchmark.sh b/scripts/runbenchmark.sh index 076c5e1..55a77fc 100755 --- a/scripts/runbenchmark.sh +++ b/scripts/runbenchmark.sh @@ -177,10 +177,8 @@ fi ../controlledrun.sh ${cautious} ${flags} -l ${tee_output} -- ./linarobench.sh [...] ret=\$?; \ echo \${ret} > ${target_dir}/RETCODE && \ - while true; do \ - if ping -c 1 ${host_ip}; then \ - break; \ - fi \ + while ! test -e ${target_dir}/postrunack; do \ + ping -c 1 ${host_ip}; \ sleep 11; \ done; \ exit \${ret}" \ @@ -198,6 +196,10 @@ fi #Today LAVA lab does not provide DNS, but IP seems stable in practice #Rather than work around lack of DNS, just make sure we notice if the IP changes while ! tcpdump -c 1 -i eth0 'icmp and icmp[icmptype]=icmp-echo' | grep -q "${ip} [...] +if ! (. ${topdir}/lib/common.sh; remote_exec "${ip}" "touch ${target_dir}/postruna [...] + echo "Warning: Failed to send post-run ack to target" + #Don't set $error, this is just a warning +fi error="`(. ${topdir}/lib/common.sh; remote_exec "${ip}" 'cat ${target_dir}/RETCODE [...] if test $? -ne 0; then echo "Unable to determine exit code, assuming the worst." 1>&2