Fixed the test, daniel

This commit is contained in:
Daniel Veillard 2006-02-28 12:56:25 +00:00
parent 65bace1765
commit 97e7e798b2

View File

@ -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)