tests: Fix running testsuite on older libvirt

If we try to run the testsuite on anything older than libvirt 3.1,
it immediately throws an exception before processing any tests,
due to choking on parsing drm bits from testdriver.xml. This global
failure is only due to sloppy coding though.

Turn all test cases that use testdriver.xml into skips in this case,
so we can at least get some test coverage otherwise.
This commit is contained in:
Cole Robinson
2018-02-22 14:57:10 -05:00
parent 62fecb09d3
commit 6954c6774a
14 changed files with 213 additions and 157 deletions

View File

@@ -100,7 +100,7 @@ class _DistroURL(object):
return "x86_64"
return "x86_64"
testconn = utils.open_testdefault()
testconn = utils.URIs.open_testdefault_cached()
hvmguest = Guest(testconn)
hvmguest.os.os_type = "hvm"
xenguest = Guest(testconn)