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 25822715f154929a452ec3ed23ab0926249df8d7 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 4b08f01..bc2195b 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 +declare -A targets +for target_hostname in `lava-group | grep '[[:blank:]]*target$' | cut -d ' ' -f 1`; do + target_ip="$(lava-network query "${target_hostname}" ipv4)" + if test $? -eq 0; then echo "Failed to find IP for ${target_hostname}"; exit 1; fi + target_base="$(echo "${target_hostname}" | sed 's/[[:digit:]]*$//')" #TODO: HACK + if test $? -eq 0; then echo "Failed to find target type from ${target_hostname}" [...] + sed "s/^ip=.*/ip=${target_ip}/" "${ABE_DIR}/config/boards/bench/${target_base}.j [...] + if test $? -eq 0; then echo "Failed to generate config file for target ${target_ [...] + targets=("${targets[@]}" "${target_hostname}") +done +export targets + echo "Running benchmark... I may be some time" export LAVA_IN_LAB=1 "${ABE_DIR}"/scripts/Benchmark.job