[dts] [PATCH V1] tests/vm_hotplug:check vf pci info instead of dev keywords
Xie, WeiX
weix.xie at intel.com
Fri Jul 3 09:28:33 CEST 2020
Tested-by: Xie,WeiX < weix.xie at intel.com>
Regards,
Xie Wei
-----Original Message-----
From: Xie, WeiX
Sent: Friday, July 3, 2020 2:17 PM
To: dts at dpdk.org
Cc: Xie, WeiX <weix.xie at intel.com>
Subject: [dts][PATCH V1] tests/vm_hotplug:check vf pci info instead of dev keywords
check vf pci info.
Signed-off-by: Xie wei <weix.xie at intel.com>
---
tests/TestSuite_vm_hotplug.py | 9 +--------
1 file changed, 1 insertion(+), 8 deletions(-)
diff --git a/tests/TestSuite_vm_hotplug.py b/tests/TestSuite_vm_hotplug.py index 2dfd835..f403d40 100644
--- a/tests/TestSuite_vm_hotplug.py
+++ b/tests/TestSuite_vm_hotplug.py
@@ -279,14 +279,7 @@ class TestVmHotplug(TestCase):
def check_vf_device(self, has_device=True, device=1):
time.sleep(1)
- sign = 'Connection'
- lis1 = ['fortville_spirit', 'fortville_eagle', 'sagepond', 'twinpond', 'sageville']
- lis2 = ['fortpark_TLV', 'fortville_25g',"fortpark_BASE-T", "carlsville"]
- if self.nic in lis1:
- sign = 'Ethernet'
- elif self.nic in lis2:
- sign = 'Device'
- out = self.vm_session.send_expect('./usertools/dpdk-devbind.py -s | grep %s' % sign, '#')
+ out = self.vm_session.send_expect('./usertools/dpdk-devbind.py
+ -s', '#')
time.sleep(2)
if has_device:
self.verify(self.vf_pci0 in out, 'no vf device')
--
2.17.1
-------------- next part --------------
A non-text attachment was scrubbed...
Name: TestVmHotplug.log
Type: application/octet-stream
Size: 7274993 bytes
Desc: TestVmHotplug.log
URL: <http://mails.dpdk.org/archives/dts/attachments/20200703/d5f0a25c/attachment-0001.obj>
More information about the dts
mailing list