mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-12-21 04:24:33 +03:00
* python/libvir.c: call the initialize entry point
* src/libvirt_sym.version: add initialize entry point * src/libvirt.c: make sure we always initialize the lib * python/tests/*.py: start updating exemple for exception handling as pointed by Jim Meyering Daniel
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user