mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-03 03:25:20 +00:00
Fixed the test, daniel
This commit is contained in:
parent
65bace1765
commit
97e7e798b2
@ -33,9 +33,10 @@ del conn
|
||||
if errno == None:
|
||||
print 'failed to get an error'
|
||||
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"
|
||||
else:
|
||||
print 'got unexpected error %s' % (errno)
|
||||
print 'got unexpected error:', errno
|
||||
|
||||
sys.exit(0)
|
||||
|
Loading…
Reference in New Issue
Block a user