[1/2] tests/blocklist: optimize logic to match more driver name of pmd

Message ID 20230703193459.41870-2-niklas.soderlund@corigine.com (mailing list archive)
State New
Headers
Series tests/blocklist: Add support for NFP PMD |

Commit Message

Niklas Söderlund July 3, 2023, 7:34 p.m. UTC
  From: Qin Ke <qin.ke@corigine.com>

Driver name of dpdk pmd can match net.*%s.*, not just net.*%s,
optimize it. For example, it is net_nfp_pf for nfp, not net_nfp.

Signed-off-by: Qin Ke <qin.ke@corigine.com>
Reviewed-by: Niklas Söderlund <niklas.soderlund@corigine.com>
Reviewed-by Dano Teixeira <dano.teixeira@corigine.com>
---
 tests/TestSuite_blocklist.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
  

Patch

diff --git a/tests/TestSuite_blocklist.py b/tests/TestSuite_blocklist.py
index 9aafc6fec2dc..9d12c8319b23 100644
--- a/tests/TestSuite_blocklist.py
+++ b/tests/TestSuite_blocklist.py
@@ -24,7 +24,7 @@  class TestBlockList(TestCase):
         self.verify(len(self.ports) >= 2, "Insufficient ports for testing")
         [arch, machine, self.env, toolchain] = self.target.split("-")
         self.regexp_blocklisted_port = (
-            "Probe PCI driver: net.*%s \(%s\) device: .*%s \(socket [-0-9]+\)"
+            "Probe PCI driver: net.*%s.* \(%s\) device: .*%s \(socket [-0-9]+\)"
         )
         self.pmdout = PmdOutput(self.dut)