summaryrefslogtreecommitdiff
path: root/tests/test_urls.py
diff options
context:
space:
mode:
authorCole Robinson <crobinso@redhat.com>2018-02-22 14:57:10 -0500
committerCole Robinson <crobinso@redhat.com>2018-02-22 16:01:24 -0500
commit6954c6774a703e9a5984cb2bb93ac7ca28bb0ac0 (patch)
tree6b69bdabff4a6b4017612f03d5a167254d66d1c5 /tests/test_urls.py
parent62fecb09d3bbc66438a4ceb979cfa607b91ca38e (diff)
downloadvirt-manager-6954c6774a703e9a5984cb2bb93ac7ca28bb0ac0.tar.gz
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.
Diffstat (limited to 'tests/test_urls.py')
-rw-r--r--tests/test_urls.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/test_urls.py b/tests/test_urls.py
index 878fb0ad..6a066560 100644
--- a/tests/test_urls.py
+++ b/tests/test_urls.py
@@ -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)