[dts] [PATCH V1] tests/TestSuite_blacklist:Modify regular match

Zhang, XiX xix.zhang at intel.com
Fri May 29 11:13:59 CEST 2020


Tested-by: zhang,xi <xix.zhang at intel.com>

-----Original Message-----
From: Zhang, XiX 
Sent: Friday, May 29, 2020 5:11 PM
To: dts at dpdk.org
Cc: Zhang, XiX <xix.zhang at intel.com>
Subject: [dts][PATCH V1] tests/TestSuite_blacklist:Modify regular match

Modify regular expression matching blacklist


Signed-off-by: xizhan4x <xix.zhang at intel.com>
---
 tests/TestSuite_blacklist.py | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/tests/TestSuite_blacklist.py b/tests/TestSuite_blacklist.py index 64360bb..d017347 100644
--- a/tests/TestSuite_blacklist.py
+++ b/tests/TestSuite_blacklist.py
@@ -49,7 +49,7 @@ class TestBlackList(TestCase):
         self.ports = self.dut.get_ports(self.nic)
         self.verify(len(self.ports) >= 2, "Insufficient ports for testing")
         [arch, machine, self.env, toolchain] = self.target.split('-')
-        self.regexp_blacklisted_port = "Probe PCI driver: net_%s \(%s\) device: %s \(socket [-0-9]+\)"
+        self.regexp_blacklisted_port = "Probe PCI driver: net.*%s \(%s\) device: .*%s \(socket [-0-9]+\)"
         self.pmdout = PmdOutput(self.dut)
 
     def set_up(self):
@@ -71,8 +71,6 @@ class TestBlackList(TestCase):
             # "Device is blacklisted, not initializing" but avoid to consume more
             # than one device.
             port_pci = self.dut.ports_info[port]['pci']
-            if self.env == "bsdapp":
-                port_pci = ':'.join(["0000", port_pci])
             regexp_blacklisted_port = self.regexp_blacklisted_port % (
                 DRIVERS.get(self.nic), self.dut.ports_info[port]['type'],
                 port_pci)
--
2.17.2

-------------- next part --------------
A non-text attachment was scrubbed...
Name: Freebsd_TestBlackList.log
Type: application/octet-stream
Size: 7191 bytes
Desc: Freebsd_TestBlackList.log
URL: <http://mails.dpdk.org/archives/dts/attachments/20200529/d06f093b/attachment.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: IGB_TestBlackList.log
Type: application/octet-stream
Size: 31896 bytes
Desc: IGB_TestBlackList.log
URL: <http://mails.dpdk.org/archives/dts/attachments/20200529/d06f093b/attachment-0001.obj>


More information about the dts mailing list