This is an automated email from the git hooks/post-receive script.
bernie.ogden pushed a commit to branch inserted_src in repository toolchain/semiautobench.
commit 2682ce9bdf033af2760f65138cd05722f1a59998 Author: Bernard Ogden bernie.ogden@linaro.org Date: Mon Jul 13 18:25:26 2015 +0200
Figure out targets at runtime
Change-Id: I719bc3831a5e0f664125fd9b13f24d15dcb874e2 --- invoke_session_debian | 14 ++++++++++++++ 1 file changed, 14 insertions(+)
diff --git a/invoke_session_debian b/invoke_session_debian index b1268f8..e1d8467 100755 --- a/invoke_session_debian +++ b/invoke_session_debian @@ -85,6 +85,20 @@ mkdir -p /run mkdir -p /run/hacking echo $$ > /run/hacking/hacking.pid
+#Generate config file for each target in multinode job +lava-network collect eth0 target +declare -A targets +for lava_name in `lava-group | grep '[[:blank:]]*target$' | awk '{print $1}'`; do + target_ip="$(lava-network query "${lava_name}" ipv4)" + if test $? -ne 0; then echo "Failed to find IP for ${lava_name}"; exit 1; fi + target_base="$(echo "${lava_name}" | sed 's/[[:digit:]]*$//')" #TODO: HACK + if test $? -ne 0; then echo "Failed to find target type from ${lava_name}"; exit 1; fi + sed "s/^ip=.*/ip=${target_ip}/" "${ABE_DIR}/config/boards/bench/${target_base}.j [...] + if test $? -ne 0; then echo "Failed to generate config file for target ${lava_na [...] + targets=("${targets[@]}" "${lava_name}") +done +export targets + echo "Running benchmark... I may be some time" export LAVA_IN_LAB=1 "${ABE_DIR}"/scripts/Benchmark.job