From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from foss.arm.com (usa-sjc-mx-foss1.foss.arm.com [217.140.101.70]) by dpdk.org (Postfix) with ESMTP id D97142C8 for ; Wed, 5 Jul 2017 10:32:11 +0200 (CEST) Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.72.51.249]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 213FC80D; Wed, 5 Jul 2017 01:32:11 -0700 (PDT) Received: from localhost.localdomain.com (unknown [10.169.41.170]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id AA5883F581; Wed, 5 Jul 2017 01:32:10 -0700 (PDT) From: Herbert Guan To: dts@dpdk.org Cc: Herbert Guan Date: Wed, 5 Jul 2017 16:32:00 +0800 Message-Id: <1499243520-20873-1-git-send-email-herbert.guan@arm.com> X-Mailer: git-send-email 1.8.3.1 Subject: [dts] [PATCH] Domain value is required because the PCI domain values are expected in ports.cfg. 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: , X-List-Received-Date: Wed, 05 Jul 2017 08:32:12 -0000 Signed-off-by: Herbert Guan --- tools/setup.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/tools/setup.py b/tools/setup.py index cc51ec5..9fcd70e 100755 --- a/tools/setup.py +++ b/tools/setup.py @@ -402,7 +402,7 @@ def config_ports(): global dut_ports dut_ports = [] add_more = True - pci_regex = "([\da-f]{2}:[\da-f]{2}.\d{1})$" + pci_regex = "([\da-f]{4}:[\da-f]{2}:[\da-f]{2}.\d{1})$" ixia_regex = r'(\d).(\d)' print ('============================================================') @@ -414,13 +414,13 @@ def config_ports(): while add_more: pci_option = {'prompt': 'DUT port pci address', 'type': 'string', - 'help': 'Please input DUT pci address xx:xx.x', + 'help': 'Please input DUT pci address xxxx:xx:xx.x', 'default': ''} opt = Option(**pci_option) dut_addr = opt.parse_input() m = re.match(pci_regex, dut_addr) if not m: - print RED("Pci address should follow BDF format!!!") + print RED("Pci address should follow Domain+BDF format!!!") continue if ixia and ixia != '': @@ -436,13 +436,13 @@ def config_ports(): else: pci_option = {'prompt': 'Tester port pci address', 'type': 'string', - 'help': 'Please input tester pci address xx:xx.x', + 'help': 'Please input tester pci address xxxx:xx:xx.x', 'default': ''} opt = Option(**pci_option) test_addr = opt.parse_input() m = re.match(pci_regex, test_addr) if not m: - print RED("Pci address should follow BDF format!!!") + print RED("Pci address should follow Domain+BDF format!!!") continue dut_port = {} -- 1.8.3.1