diff mbox series

[V1,01/10] tests/vhost_cbdma: Modify get_cbdma_ports_info

Message ID 20210729172404.90883-2-linglix.chen@intel.com (mailing list archive)
State Changes Requested
Headers show
Series fix script issues | expand

Commit Message

Chen, LingliX July 29, 2021, 5:23 p.m. UTC
Signed-off-by: Lingli Chen <linglix.chen@intel.com>
---
 tests/TestSuite_vhost_cbdma.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Wang, Yinan July 30, 2021, 1:55 a.m. UTC | #1
Acked-by:  Yinan Wang <yinan.wang@intel.com>

> -----Original Message-----
> From: dts <dts-bounces@dpdk.org> On Behalf Of Lingli Chen
> Sent: 2021?7?30? 1:24
> To: dts@dpdk.org
> Cc: Chen, LingliX <linglix.chen@intel.com>
> Subject: [dts] [PATCH V1 01/10] tests/vhost_cbdma: Modify
> get_cbdma_ports_info
> 
> Signed-off-by: Lingli Chen <linglix.chen@intel.com>
> ---
>  tests/TestSuite_vhost_cbdma.py | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/tests/TestSuite_vhost_cbdma.py
> b/tests/TestSuite_vhost_cbdma.py
> index 16fef645..6305d37e 100644
> --- a/tests/TestSuite_vhost_cbdma.py
> +++ b/tests/TestSuite_vhost_cbdma.py
> @@ -130,7 +130,7 @@ class TestVirTioVhostCbdma(TestCase):
>          out = self.dut.send_expect('./usertools/dpdk-devbind.py --status-dev
> misc', '# ', 30)
>          device_info = out.split('\n')
>          for device in device_info:
> -            pci_info = re.search('\s*(0000:\d*:\d*.\d*)', device)
> +            pci_info = re.search('\s*(0000:\S*:\d*.\d*)', device)
>              if pci_info is not None:
>                  dev_info = pci_info.group(1)
>                  # the numa id of ioat dev, only add the device which
> --
> 2.32.0
diff mbox series

Patch

diff --git a/tests/TestSuite_vhost_cbdma.py b/tests/TestSuite_vhost_cbdma.py
index 16fef645..6305d37e 100644
--- a/tests/TestSuite_vhost_cbdma.py
+++ b/tests/TestSuite_vhost_cbdma.py
@@ -130,7 +130,7 @@  class TestVirTioVhostCbdma(TestCase):
         out = self.dut.send_expect('./usertools/dpdk-devbind.py --status-dev misc', '# ', 30)
         device_info = out.split('\n')
         for device in device_info:
-            pci_info = re.search('\s*(0000:\d*:\d*.\d*)', device)
+            pci_info = re.search('\s*(0000:\S*:\d*.\d*)', device)
             if pci_info is not None:
                 dev_info = pci_info.group(1)
                 # the numa id of ioat dev, only add the device which