test suite reviews and discussions
 help / color / mirror / Atom feed
* [dts] [PATCH V1] tests/vm_hotplug:check vf pci info instead of dev keywords
@ 2020-07-03  6:16 Xie wei
  2020-07-03  7:28 ` Xie, WeiX
  2020-07-20  6:55 ` Tu, Lijuan
  0 siblings, 2 replies; 3+ messages in thread
From: Xie wei @ 2020-07-03  6:16 UTC (permalink / raw)
  To: dts; +Cc: Xie wei

check vf pci info.

Signed-off-by: Xie wei <weix.xie@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


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [dts] [PATCH V1] tests/vm_hotplug:check vf pci info instead of dev keywords
  2020-07-03  6:16 [dts] [PATCH V1] tests/vm_hotplug:check vf pci info instead of dev keywords Xie wei
@ 2020-07-03  7:28 ` Xie, WeiX
  2020-07-20  6:55 ` Tu, Lijuan
  1 sibling, 0 replies; 3+ messages in thread
From: Xie, WeiX @ 2020-07-03  7:28 UTC (permalink / raw)
  To: dts

[-- Attachment #1: Type: text/plain, Size: 1427 bytes --]

Tested-by:  Xie,WeiX < weix.xie@intel.com>

Regards,
Xie Wei


-----Original Message-----
From: Xie, WeiX 
Sent: Friday, July 3, 2020 2:17 PM
To: dts@dpdk.org
Cc: Xie, WeiX <weix.xie@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@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


[-- Attachment #2: TestVmHotplug.log --]
[-- Type: application/octet-stream, Size: 7274993 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [dts] [PATCH V1] tests/vm_hotplug:check vf pci info instead of dev keywords
  2020-07-03  6:16 [dts] [PATCH V1] tests/vm_hotplug:check vf pci info instead of dev keywords Xie wei
  2020-07-03  7:28 ` Xie, WeiX
@ 2020-07-20  6:55 ` Tu, Lijuan
  1 sibling, 0 replies; 3+ messages in thread
From: Tu, Lijuan @ 2020-07-20  6:55 UTC (permalink / raw)
  To: Xie, WeiX, dts; +Cc: Xie, WeiX

Applied, thanks

> -----Original Message-----
> From: dts <dts-bounces@dpdk.org> On Behalf Of Xie wei
> Sent: 2020年7月3日 14:17
> To: dts@dpdk.org
> Cc: Xie, WeiX <weix.xie@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@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


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2020-07-20  6:55 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-07-03  6:16 [dts] [PATCH V1] tests/vm_hotplug:check vf pci info instead of dev keywords Xie wei
2020-07-03  7:28 ` Xie, WeiX
2020-07-20  6:55 ` Tu, Lijuan

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).