diff mbox series

[V1] framework/crb:get FreeBSD pci info

Message ID 20211124162612.132334-1-leweix.yang@intel.com (mailing list archive)
State New
Headers show
Series [V1] framework/crb:get FreeBSD pci info | expand

Checks

Context Check Description
ci/Intel-dts-suite-test fail Testing issues

Commit Message

Lewei Yang Nov. 24, 2021, 4:26 p.m. UTC
The change of FreeBSD system version will change the display of PCI
info,Now change the script adaptation.

Signed-off-by: Lewei Yang <leweix.yang@intel.com>
---
 framework/crb.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/framework/crb.py b/framework/crb.py
index c9909add..bd4f565d 100755
--- a/framework/crb.py
+++ b/framework/crb.py
@@ -336,7 +336,7 @@  class Crb(object):
         Look for the NIC's information (PCI Id and card type).
         """
         out = self.send_expect("pciconf -l", "# ", alt_session=True)
-        rexp = r"pci0:([\da-f]{1,3}:[\da-f]{1,2}:\d{1}):\s*class=0x020000.*chip=0x([\da-f]{4})8086"
+        rexp = r"pci0:([\da-f]{1,3}:[\da-f]{1,2}:\d{1}):\s*class=0x020000.*0x([\da-f]{4}).*8086"
         pattern = re.compile(rexp)
         match = pattern.findall(out)