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 518536ffd7c000113b646bd8c13075b3d7039ede Author: Bernard Ogden bernie.ogden@linaro.org Date: Thu Jul 23 17:06:23 2015 +0200
Move agent request to just before it is needed
Keep the code together, hold the agent for the shortest time possible.
Change-Id: I058c79cb02fe85da618f7f5d7507ecf5eab88c50 --- invoke_session_debian | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-)
diff --git a/invoke_session_debian b/invoke_session_debian index 1e57c15..15c7f09 100755 --- a/invoke_session_debian +++ b/invoke_session_debian @@ -79,11 +79,6 @@ if ! ssh -o NoHostAuthenticationForLocalhost=yes localhost true; then exit 1 fi
-#This would be two agents if we wanted one for source, one for job -echo "*** WAITING FOR AGENT: ${ip_addr}" -while ! test -e ~/data/socket; do - inotifywait -e create ~/data -done echo "" mkdir -p /run mkdir -p /run/hacking @@ -95,6 +90,12 @@ lava-network collect eth0 echo WAITED > /dev/console cat /tmp/lava_multi_node_cache.txt
+#Request agent just before we need it +#This would be two keys in one agent if we wanted one for source, one for job +echo "*** WAITING FOR AGENT: ${ip_addr}" +while ! test -e ~/data/socket; do + inotifywait -e create ~/data +done #Best practice would be to use abe to do this, but I hope this is temporary git clone "`grep ${benchmark} ${ABE_DIR}/config/sources.conf | awk '{print $2}'`" [...]