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 930A5A2EFC for ; Tue, 15 Oct 2019 12:05:23 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 5970B1EB6F; Tue, 15 Oct 2019 12:05:23 +0200 (CEST) Received: from mga03.intel.com (mga03.intel.com [134.134.136.65]) by dpdk.org (Postfix) with ESMTP id 90BA11EB4C for ; Tue, 15 Oct 2019 12:05:19 +0200 (CEST) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by orsmga103.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 15 Oct 2019 03:05:18 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.67,298,1566889200"; d="scan'208";a="225372926" Received: from unknown (HELO dpdk-xiaoqimai-tester.sh.intel.com) ([10.240.179.35]) by fmsmga002.fm.intel.com with ESMTP; 15 Oct 2019 03:05:17 -0700 From: Xiao Qimai To: dts@dpdk.org Cc: Xiao Qimai Date: Tue, 15 Oct 2019 06:03:35 -0400 Message-Id: <1571133815-17165-1-git-send-email-qimaix.xiao@intel.com> X-Mailer: git-send-email 1.8.3.1 Subject: [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" 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 bcb3865..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 = '-w\\s+.+?:.+?:.+?\\..+?[,.*=\d+]?\s' + re_w_pci_str = '\s?-w\\s+.+?:.+?:.+?\\..+?[,.*=\d+]?\s|\s?-w\\s+.+?:.+?\\..+?[,.*=\d+]?\s' re_file_prefix_str = '--file-prefix=.+?\s' - re_b_pci_str = '-b\\s+.+?:.+?:.+?\\..+?[,.*=\d+]?\s' + re_b_pci_str = '\s?-b\\s+.+?:.+?:.+?\\..+?[,.*=\d+]?\s|\s?-b\\s+.+?:.+?\\..+?[,.*=\d+]?\s' eal_param = eal_param + ' ' # pci_str_list eg: ['-w 0000:1a:00.0 ', '-w 0000:1a:00.1,queue-num-per-vf=4 ', '-w 0000:aa:bb.1,queue-num-per-vf=4 '] w_pci_str_list = re.findall(re_w_pci_str, eal_param) -- 1.8.3.1