From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 35A05A0C52; Wed, 24 Nov 2021 09:25:35 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 2539F40A4B; Wed, 24 Nov 2021 09:25:35 +0100 (CET) Received: from mga05.intel.com (mga05.intel.com [192.55.52.43]) by mails.dpdk.org (Postfix) with ESMTP id B76D240688 for ; Wed, 24 Nov 2021 09:25:33 +0100 (CET) X-IronPort-AV: E=McAfee;i="6200,9189,10177"; a="321466681" X-IronPort-AV: E=Sophos;i="5.87,260,1631602800"; d="scan'208";a="321466681" Received: from orsmga008.jf.intel.com ([10.7.209.65]) by fmsmga105.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 24 Nov 2021 00:25:31 -0800 X-IronPort-AV: E=Sophos;i="5.87,260,1631602800"; d="scan'208";a="509786131" Received: from unknown (HELO dpdk.lan) ([10.240.183.77]) by orsmga008-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 24 Nov 2021 00:25:28 -0800 From: Lewei Yang To: dts@dpdk.org Cc: Lewei Yang Subject: [dts][PATCH V1] framework/crb:get FreeBSD pci info Date: Wed, 24 Nov 2021 16:26:12 +0000 Message-Id: <20211124162612.132334-1-leweix.yang@intel.com> X-Mailer: git-send-email 2.33.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: dts@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: test suite reviews and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dts-bounces@dpdk.org The change of FreeBSD system version will change the display of PCI info,Now change the script adaptation. Signed-off-by: Lewei Yang --- framework/crb.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) -- 2.33.1