Add some timeouts to the circle/gce tests.

This commit is contained in:
Tom Wilkie committed 2015-05-29 11:29:43 +00:00
1 parent 28781ef08c
commit 3642dc5514
2 files changed
+9 -1

No files matched your search

+8 -1
View File
@@ -33,7 +33,14 @@ function vm_names {
# Delete all vms in this account
function destroy {
names="$(vm_names)"
gcloud compute instances delete --zone $ZONE -q $names || true
for i in {0..10}; do
# gcloud instances delete can sometimes hang.
timeout 60s /bin/bash -c "gcloud compute instances delete --zone $ZONE -q $names || true"
# 124 means it timed out
if [ $? -ne 124 ]; then
return
fi
done
}
function external_ip {