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 902b8eb7e2bfe80a62263ec4c7b1e7148f63f922 Author: Bernard Ogden bernie.ogden@linaro.org Date: Wed Jul 29 16:05:59 2015 +0200
Create a file to signal targets to end LAVA session
Had been relying on issuing a shutdown to achieve this, but that didn't work for arndale (probably only works for kvm). This solution is generic.
Change-Id: Idb725fcea40555941f5bb52deb04faaa02794f11 --- config/bench/lava/host-session | 2 +- config/bench/lava/target-session | 5 ++++- config/bench/lava/target-session.yaml | 1 + 3 files changed, 6 insertions(+), 2 deletions(-)
diff --git a/config/bench/lava/host-session b/config/bench/lava/host-session index 6cbc603..e443445 100755 --- a/config/bench/lava/host-session +++ b/config/bench/lava/host-session @@ -118,7 +118,7 @@ rm ~/data/socket export ABE_DIR export targets="${target_names[@]}" export maindir="/${HOME}/bench" -export post_target_cmd="shutdown -h 0" +export post_target_cmd='touch ${HOME}/messages/release' mkdir "${maindir}" chmod 700 "${maindir}"
diff --git a/config/bench/lava/target-session b/config/bench/lava/target-session index f042d82..899ce6d 100755 --- a/config/bench/lava/target-session +++ b/config/bench/lava/target-session @@ -1,3 +1,6 @@ #!/bin/bash lava-network broadcast eth0 -sleep infinity +mkdir "${HOME}/messages" +while ! test -e "${HOME}/messages/release"; do + inotifywait -e create "${HOME}/messages" +done diff --git a/config/bench/lava/target-session.yaml b/config/bench/lava/target-session.yaml index 6b737ab..65f37a5 100644 --- a/config/bench/lava/target-session.yaml +++ b/config/bench/lava/target-session.yaml @@ -17,6 +17,7 @@ install: - gawk - libgfortran3 - rsync + - inotify-tools
run: steps: