]> xenbits.xensource.com Git - libvirt.git/commitdiff
Fixed the test, daniel
authorDaniel Veillard <veillard@redhat.com>
Tue, 28 Feb 2006 12:56:25 +0000 (12:56 +0000)
committerDaniel Veillard <veillard@redhat.com>
Tue, 28 Feb 2006 12:56:25 +0000 (12:56 +0000)
python/tests/error.py

index 9979ed1e15a860f53092c86077808d84b6283fea..295f9a72b21ff3b1416b0e027d5d9768246c59e7 100755 (executable)
@@ -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)