mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-20 11:35:19 +00:00
Fixed the test, daniel
This commit is contained in:
parent
65bace1765
commit
97e7e798b2
@ -33,9 +33,10 @@ del conn
|
|||||||
if errno == None:
|
if errno == None:
|
||||||
print 'failed to get an error'
|
print 'failed to get an error'
|
||||||
elif errno[0] == libvirt.VIR_ERR_NO_CONNECT or \
|
elif errno[0] == libvirt.VIR_ERR_NO_CONNECT or \
|
||||||
errno[0] == libvirt.VIR_ERR_INVALID_DOMAIN:
|
errno[0] == libvirt.VIR_ERR_INVALID_DOMAIN or \
|
||||||
|
errno[0] == libvirt.VIR_ERR_GET_FAILED:
|
||||||
print "OK"
|
print "OK"
|
||||||
else:
|
else:
|
||||||
print 'got unexpected error %s' % (errno)
|
print 'got unexpected error:', errno
|
||||||
|
|
||||||
sys.exit(0)
|
sys.exit(0)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user