This is an automated email from the git hooks/post-receive script.
bernie.ogden pushed a commit to branch bernie/benchmarking in repository toolchain/abe.
commit f91408e265d20caa87352651a9e1bdd88f469a63 Author: Bernard Ogden bernie.ogden@linaro.org Date: Tue Jul 28 16:05:50 2015 +0200
Issue the post-run command whenever we delete the source
Once the source is deleted, we're happy to shut down. To be good citizens with shared resources, we should do so.
Change-Id: I0e02660f51d7fb05cad4886e187fcdab1a04e890 --- scripts/runbenchmark.sh | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-)
diff --git a/scripts/runbenchmark.sh b/scripts/runbenchmark.sh index 60f97b6..dabb7c8 100755 --- a/scripts/runbenchmark.sh +++ b/scripts/runbenchmark.sh @@ -90,6 +90,11 @@ clean_benchmark() (. "${topdir}"/lib/common.sh; remote_exec "${ip}" "rm -rf ${target_dir}" ${s [...] if test $? -eq 0; then echo "Removed ${target_dir} from ${ip}" + echo "Sending post-target command '${post_target_cmd}' - will not check er [...] + if test x"${post_target_cmd}" != x; then + (. ${topdir}/lib/common.sh; remote_exec "${ip}" "${post_target_cmd}" ${s [...] + fi + #We don't check the error code because this might well include a shutdown else echo "Failed to remove ${target_dir} from ${ip}. You might want to go in a [...] error=1 @@ -99,14 +104,6 @@ clean_benchmark() echo "Target post-boot initialisation did not happen, thus nothing to clean up." fi
- if test ${error} -eq 0; then - echo "Sending post-target command '${post_target_cmd}' - will not check error code" - if test x"${post_target_cmd}" != x; then - (. ${topdir}/lib/common.sh; remote_exec "${ip}" "${post_target_cmd}" ${ssh_opts}) - fi - #We don't check the error code because this might well include a shutdown - fi - exit "${error}" }