diff options
author | Lin Ma <lma@suse.com> | 2017-03-27 10:22:32 +0800 |
---|---|---|
committer | Cole Robinson <crobinso@redhat.com> | 2017-03-27 17:15:17 -0400 |
commit | 262376d16f0739a00d794192aeeee4c4e1fd84d3 (patch) | |
tree | 59e17b61a403fd404bdc7fbfa155735e9193fec2 /tests/nodedev.py | |
parent | 899f53b99341075c8ee77a3602ca132f35860d56 (diff) | |
download | virt-manager-262376d16f0739a00d794192aeeee4c4e1fd84d3.tar.gz |
nodedev: Parse PCI capability_type for SR-IOV device
This will be used in the following patch to recognize SR-IOV capable
device.
Signed-off-by: Lin Ma <lma@suse.com>
Diffstat (limited to 'tests/nodedev.py')
-rw-r--r-- | tests/nodedev.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/nodedev.py b/tests/nodedev.py index 15e54b1d..db6a7fc8 100644 --- a/tests/nodedev.py +++ b/tests/nodedev.py @@ -279,6 +279,11 @@ class TestNodeDev(unittest.TestCase): obj = self._nodeDevFromName(nodename) self.assertEqual(obj.iommu_group, 3) + def testNodeDevSRIOV(self): + nodename = "pci_8086_10fb" + obj = self._nodeDevFromName(nodename) + self.assertEqual(obj.capability_type, "virt_functions") + def testNodeDevFail(self): nodename = "usb_device_1d6b_1_0000_00_1d_1_if0" devfile = "" |