From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id ADDF9A3168 for ; Thu, 17 Oct 2019 09:51:58 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 856CB1E54B; Thu, 17 Oct 2019 09:51:58 +0200 (CEST) Received: from mga18.intel.com (mga18.intel.com [134.134.136.126]) by dpdk.org (Postfix) with ESMTP id 5C46B1E547 for ; Thu, 17 Oct 2019 09:51:57 +0200 (CEST) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga006.fm.intel.com ([10.253.24.20]) by orsmga106.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 17 Oct 2019 00:51:56 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.67,307,1566889200"; d="scan'208";a="397436596" Received: from fmsmsx105.amr.corp.intel.com ([10.18.124.203]) by fmsmga006.fm.intel.com with ESMTP; 17 Oct 2019 00:51:55 -0700 Received: from fmsmsx126.amr.corp.intel.com (10.18.125.43) by FMSMSX105.amr.corp.intel.com (10.18.124.203) with Microsoft SMTP Server (TLS) id 14.3.439.0; Thu, 17 Oct 2019 00:51:55 -0700 Received: from shsmsx105.ccr.corp.intel.com (10.239.4.158) by FMSMSX126.amr.corp.intel.com (10.18.125.43) with Microsoft SMTP Server (TLS) id 14.3.439.0; Thu, 17 Oct 2019 00:51:55 -0700 Received: from shsmsx103.ccr.corp.intel.com ([169.254.4.165]) by SHSMSX105.ccr.corp.intel.com ([169.254.11.96]) with mapi id 14.03.0439.000; Thu, 17 Oct 2019 15:51:54 +0800 From: "Xiao, QimaiX" To: "dts@dpdk.org" Thread-Topic: [dts][PATCH V1] framework/pmd_output: update regex to support freeBSD Thread-Index: AQHVg0AWwY+U9vJICkKl4XMboZ8JxqdeeKhg Date: Thu, 17 Oct 2019 07:51:53 +0000 Message-ID: <5C5FA1EBCC0D164EAD0302E258A5234B75DE93@SHSMSX103.ccr.corp.intel.com> References: <1571133815-17165-1-git-send-email-qimaix.xiao@intel.com> In-Reply-To: <1571133815-17165-1-git-send-email-qimaix.xiao@intel.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.239.127.40] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Subject: Re: [dts] [PATCH V1] framework/pmd_output: update regex to support freeBSD X-BeenThere: dts@dpdk.org X-Mailman-Version: 2.1.15 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 Sender: "dts" Tested-by: Xiao, QimaiX Best Regards, Xiao,Qimai -----Original Message----- From: Xiao, QimaiX=20 Sent: Tuesday, October 15, 2019 6:04 PM To: dts@dpdk.org Cc: Xiao, QimaiX Subject: [dts][PATCH V1] framework/pmd_output: update regex to support free= BSD port_info in freeBSD has no domain_id, so update regex to adapt to it Signed-off-by: Xiao Qimai --- framework/pmd_output.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/framework/pmd_output.py b/framework/pmd_output.py index bcb386= 5..e420a65 100644 --- a/framework/pmd_output.py +++ b/framework/pmd_output.py @@ -109,9 +109,9 @@ class PmdOutput(): :param eal_param: :return: """ - re_w_pci_str =3D '-w\\s+.+?:.+?:.+?\\..+?[,.*=3D\d+]?\s' + re_w_pci_str =3D '\s?-w\\s+.+?:.+?:.+?\\..+?[,.*=3D\d+]?\s|\s?-w\\= s+.+?:.+?\\..+?[,.*=3D\d+]?\s' re_file_prefix_str =3D '--file-prefix=3D.+?\s' - re_b_pci_str =3D '-b\\s+.+?:.+?:.+?\\..+?[,.*=3D\d+]?\s' + re_b_pci_str =3D '\s?-b\\s+.+?:.+?:.+?\\..+?[,.*=3D\d+]?\s|\s?-b\\= s+.+?:.+?\\..+?[,.*=3D\d+]?\s' eal_param =3D eal_param + ' ' # pci_str_list eg: ['-w 0000:1a:00.0 ', '-w 0000:1a:00.1,queue-n= um-per-vf=3D4 ', '-w 0000:aa:bb.1,queue-num-per-vf=3D4 '] w_pci_str_list =3D re.findall(re_w_pci_str, eal_param) -- 1.8.3.1