[V1] framework/crb:get FreeBSD pci info

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

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(-)
  

Comments

Tu, Lijuan Nov. 30, 2021, 3:30 a.m. UTC | #1
> -----Original Message-----
> From: Lewei Yang <leweix.yang@intel.com>
> Sent: 2021年11月25日 0:26
> To: dts@dpdk.org
> Cc: Yang, LeweiX <leweix.yang@intel.com>
> Subject: [dts][PATCH V1] framework/crb:get FreeBSD pci info
> 
> 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>

Applied
  

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)