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 c283c0c4215eddcfadac79d03bb8bda70b84b3bf Author: Bernard Ogden bernie.ogden@linaro.org Date: Fri Jul 24 17:52:11 2015 +0200
Add option to reboot target on completion
Benchmark.job will do this by default This can be a good practice for noise mitigation Conveniently, it also releases LAVA targets
Change-Id: Ic7172f8abdbc855aba0555df7b3f87baca104216 --- scripts/Benchmark.job | 2 +- scripts/runbenchmark.sh | 8 +++++++- 2 files changed, 8 insertions(+), 2 deletions(-)
diff --git a/scripts/Benchmark.job b/scripts/Benchmark.job index 4baf783..e26fd48 100755 --- a/scripts/Benchmark.job +++ b/scripts/Benchmark.job @@ -54,4 +54,4 @@ fi cd "${maindir}" "${ABE_DIR}"/configure --with-fileserver=148.251.136.42 --with-remote-snapshots=/s [...]
-"${ABE_DIR}"/scripts/benchmark.sh ${run_flags:+-a "${run_flags//"/\"}"} ${compi [...] +"${ABE_DIR}"/scripts/benchmark.sh -s ${run_flags:+-a "${run_flags//"/\"}"} ${co [...] diff --git a/scripts/runbenchmark.sh b/scripts/runbenchmark.sh index 9f3abd0..29f498e 100755 --- a/scripts/runbenchmark.sh +++ b/scripts/runbenchmark.sh @@ -18,7 +18,8 @@ keep= cautious='' build_dir= run_benchargs= -while getopts g:b:d:t:a:kpc flag; do +kill_target=0 +while getopts g:b:d:t:a:kpcs flag; do case "${flag}" in g) tag="${OPTARG}";; k) keep='-k';; @@ -28,6 +29,7 @@ while getopts g:b:d:t:a:kpc flag; do d) device="${OPTARG}";; t) buildtar="${OPTARG}";; a) run_benchargs="${OPTARG}";; + s) kill_target=1;; *) echo "Bad arg" 1>&2 exit 1 @@ -208,6 +210,10 @@ for log in ../stdout ../stderr linarobenchlog ${benchlog}; do fi done
+if test ${kill_target} -ne 0; then + (. ${topdir}/lib/common.sh; remote_exec "${ip}" 'sudo shutdown -r 0' ${ssh_opts}) +fi + if test ${error} -eq 0; then echo "+++ Run of ${benchmark} on ${device} succeeded" else