arm64_download script waits for VM to boot before finishing.

It may take an unknown amount of time to boot.

Also, add `set -e` to the script to simplify error handling.

BUG=skia:2425
NOTRY=true
R=epoger@google.com

Author: halcanary@google.com

Review URL: https://codereview.chromium.org/239243005

git-svn-id: http://skia.googlecode.com/svn/trunk@14209 2bbb7eff-a529-9590-31e7-b0007b416f81
This commit is contained in:
commit-bot@chromium.org 2014-04-15 20:05:24 +00:00
parent 089846251b
commit 87126fb154

View File

@ -118,6 +118,12 @@ start_arm64_image() {
--network-nat-subnet="192.168.31.0/24" \ --network-nat-subnet="192.168.31.0/24" \
--network-nat-ports="8022=22" \ --network-nat-ports="8022=22" \
> /dev/null 2>&1 & > /dev/null 2>&1 &
echo 'Waiting for foundation model to boot...'
while ! ssh -i "${working_dir}/key" \
-o NoHostAuthenticationForLocalhost=yes \
-p 8022 user@localhost true 2> /dev/null; do
sleep 5
done
echo 'Listening to SSH on port 8022.' echo 'Listening to SSH on port 8022.'
} }