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.
The following commit(s) were added to refs/heads/bernie/benchmarking by this push: new db23354 Create a file to signal targets to end LAVA session db23354 is described below
commit db2335482ae58b6899907a67d0c49a494b8d88d9 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..3b44f1b 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 ! -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: