[fuchsia] Test wait for device to be up after pave (#64819)

This commit is contained in:
Casey Hillers 2020-08-31 09:48:05 -07:00 committed by GitHub
parent b093edaf7e
commit ef3440b8d8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -77,6 +77,13 @@ ssh-keygen -y -f $pkey > key.pub
fuchsia_ctl pave -i $1 --public-key "key.pub"
echo "$(date) END:PAVING --------------------------------------------"
echo "$(date) START:WAIT_DEVICE_READY -------------------------------"
for i in {1..10}; do
fuchsia_ctl ssh \
--identity-file $pkey \
-c "echo up" && break || sleep 15;
done
echo "$(date) END:WAIT_DEVICE_READY ---------------------------------"
echo "$(date) START:PUSH_PACKAGES -------------------------------"
fuchsia_ctl push-packages \