Add some timeouts to the circle/gce tests.
This commit is contained in:
1 parent
28781ef08c
commit
3642dc5514
2 files changed
+9
-1
No files matched your search
@@ -41,6 +41,7 @@ test:
|
||||
parallel: true
|
||||
- cd $SRCDIR/test; . ./gce.sh hosts; ./run_all.sh:
|
||||
parallel: true
|
||||
timeout: 300
|
||||
post:
|
||||
- cd $SRCDIR/test; ./gce.sh destroy:
|
||||
parallel: true
|
||||
+8
-1
@@ -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 {
|
||||
|
||||
Reference in new issue
Block a user