Code Review
/
doctor.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
review
|
tree
raw
(from parent 2:
bd0255f
)
Merge "Add Dong Wenjuan as committer"
author
Ryota MIBU
<r-mibu@cq.jp.nec.com>
Thu, 30 Jun 2016 08:28:57 +0000
(08:28 +0000)
committer
Gerrit Code Review
<gerrit@172.30.200.206>
Thu, 30 Jun 2016 08:28:57 +0000
(08:28 +0000)
tests/run.sh
patch
|
blob
|
history
diff --git
a/tests/run.sh
b/tests/run.sh
index
56bacca
..
d7240d2
100755
(executable)
--- a/
tests/run.sh
+++ b/
tests/run.sh
@@
-166,12
+166,17
@@
stop_consumer() {
wait_for_vm_launch() {
echo "waiting for vm launch..."
- while true
+ count=0
+ while [[ ${count} -lt 60 ]]
do
state=$(nova list | grep " $VM_NAME " | awk '{print $6}')
[[ "$state" == "ACTIVE" ]] && return 0
+ [[ "$state" == "ERROR" ]] && echo "vm state is ERROR" && exit 1
+ count=$(($count+1))
sleep 1
done
+ echo "ERROR: time out while waiting for vm launch"
+ exit 1
}
inject_failure() {