summaryrefslogtreecommitdiffstats
path: root/tests/create.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/create.py')
-rwxr-xr-xtests/create.py9
1 files changed, 8 insertions, 1 deletions
diff --git a/tests/create.py b/tests/create.py
index c897741..b717db1 100755
--- a/tests/create.py
+++ b/tests/create.py
@@ -115,13 +115,20 @@ time.sleep(10)
print "shutdown of test domain"
if dom.shutdown() != 0:
+ okay = 0
print 'Failed to shutdown domain test'
i = 0
while i < 30:
time.sleep(1)
i = i + 1
- t = dom.info()[4]
+ try:
+ t = dom.info()[4]
+ except:
+ okay = 0
+ t = -1
+ break;
+
if t == 0:
break