tests: Fix a few failures with older libvirt

This commit is contained in:
Cole Robinson
2014-03-06 11:29:23 -05:00
parent 98a27fc7fd
commit 75a2e12dc0
4 changed files with 14 additions and 0 deletions

View File

@@ -1058,6 +1058,10 @@ class XMLParseTest(unittest.TestCase):
utils.test_create(conn, pool.get_xml_config(), "storagePoolDefineXML")
def testGlusterPool(self):
if not conn.check_support(conn.SUPPORT_CONN_POOL_GLUSTERFS):
raise unittest.SkipTest("Gluster pools not supported with this "
"libvirt version.")
basename = "pool-gluster"
infile = "tests/storage-xml/%s.xml" % basename
outfile = "tests/xmlparse-xml/%s-out.xml" % basename