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 a0f70a4d972296792f379b3dc4951d25934fbb15 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/runbenchmark.sh | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-)
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