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.
The following commit(s) were added to refs/heads/inserted_src by this push: new fb9d7e0 Construct list of targets in whitespace-safe way fb9d7e0 is described below
commit fb9d7e0e97db8fbc0c581d5d1956baed5a15cc40 Author: Bernard Ogden bernie.ogden@linaro.org Date: Tue Jul 21 14:21:05 2015 +0200
Construct list of targets in whitespace-safe way
Unfortunately we then have to export it in a non-whitespace-safe way, but at least we're well-behaved within the boundary of this script.
Change-Id: Id514729f74808e18e58a21e144277c08fb3c41c1 --- invoke_session_debian | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/invoke_session_debian b/invoke_session_debian index cc5c12d..90734a2 100755 --- a/invoke_session_debian +++ b/invoke_session_debian @@ -116,7 +116,7 @@ lava-network broadcast eth0 lava-network collect eth0 echo WAITED > /dev/console cat /tmp/lava_multi_node_cache.txt -targets=() +declare -a target_names for lava_name in `lava-group | grep '[[:blank:]]*target$' | awk '{print $1}'`; do echo "NAME ${lava_name}" > /dev/console target_ip="$(lava-network query ${lava_name} ipv4)" @@ -128,13 +128,13 @@ for lava_name in `lava-group | grep '[[:blank:]]*target$' | a [...] echo "TYPE ${target_base}" 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 [...] - if test "${#targets[@]}" -eq 0; then - targets=("${lava_name}") + if test x"${targets}" = x; then + target_names=("${lava_name}") else - targets=("${targets[@]}" "${lava_name}") + target_names=("${target_names[@]}" "${lava_name}") fi done -export targets +export targets="${target_names[@]}"
echo "Running benchmark... I may be some time" export LAVA_IN_LAB=1