[virt-tools-list] [virt-manager PATCH 2/3] Fix hostdev tests
Martin Kletzander
mkletzan at redhat.com
Mon Apr 8 08:39:59 UTC 2013
For <hostdev> element, mode="capabilities" is used only for
block/character device passthrough and thus it fails with pci
passthrough.
Signed-off-by: Martin Kletzander <mkletzan at redhat.com>
---
tests/xmlparse-xml/change-hostdevs-out.xml | 2 +-
tests/xmlparse.py | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/tests/xmlparse-xml/change-hostdevs-out.xml b/tests/xmlparse-xml/change-hostdevs-out.xml
index bbc876c..ca09d29 100644
--- a/tests/xmlparse-xml/change-hostdevs-out.xml
+++ b/tests/xmlparse-xml/change-hostdevs-out.xml
@@ -33,7 +33,7 @@
<address bus="0x56" device="0x78"/>
</source>
</hostdev>
- <hostdev mode="capabilities" type="pci" managed="yes">
+ <hostdev mode="subsystem" type="pci" managed="yes">
<source>
<address domain="0x4" bus="0x5" slot="0x6" function="0x7"/>
</source>
diff --git a/tests/xmlparse.py b/tests/xmlparse.py
index 04559ae..933dc49 100644
--- a/tests/xmlparse.py
+++ b/tests/xmlparse.py
@@ -549,7 +549,7 @@ class XMLParseTest(unittest.TestCase):
check = self._make_checker(dev3)
check("type", "pci")
check("managed", True, True)
- check("mode", "subsystem", "capabilities")
+ check("mode", "subsystem", "subsystem")
check("domain", "0x0", "0x4")
check("bus", "0x1", "0x5")
check("slot", "0x2", "0x6")
--
1.8.1.5
More information about the virt-tools-list
mailing list