labs: fix formatting in wait_for_ssh
The dots printed while waiting for the ssh server to respond are no longer on a separate line, and the line ends with a newline. Change-Id: Ib6c1ddaa35a35ff0a1c28f9e98d205740934c0f6
This commit is contained in:
@@ -104,7 +104,7 @@ function vm_ssh {
|
|||||||
function wait_for_ssh {
|
function wait_for_ssh {
|
||||||
local ssh_port=$1
|
local ssh_port=$1
|
||||||
|
|
||||||
echo "Waiting for ssh server to respond on local port $ssh_port"
|
echo -n "Waiting for ssh server to respond on local port $ssh_port."
|
||||||
while [ : ]; do
|
while [ : ]; do
|
||||||
if vm_ssh "$ssh_port" exit ; then
|
if vm_ssh "$ssh_port" exit ; then
|
||||||
break
|
break
|
||||||
@@ -113,6 +113,7 @@ function wait_for_ssh {
|
|||||||
sleep 1
|
sleep 1
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
echo
|
||||||
}
|
}
|
||||||
|
|
||||||
# Copy one script to VM and execute it via ssh; log output to separate file
|
# Copy one script to VM and execute it via ssh; log output to separate file
|
||||||
|
|||||||
Reference in New Issue
Block a user