From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from foss.arm.com (foss.arm.com [217.140.101.70]) by dpdk.org (Postfix) with ESMTP id BB97C2A58 for ; Wed, 5 Jul 2017 10:24:17 +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 AB6F280D; Wed, 5 Jul 2017 01:24:16 -0700 (PDT) Received: from localhost.localdomain.com (unknown [10.169.41.170]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id 406EE3F581; Wed, 5 Jul 2017 01:24:16 -0700 (PDT) From: Herbert Guan To: dts@dpdk.org Cc: Herbert Guan Date: Wed, 5 Jul 2017 16:24:04 +0800 Message-Id: <1499243044-20817-1-git-send-email-herbert.guan@arm.com> X-Mailer: git-send-email 1.8.3.1 Subject: [dts] [PATCH] Allow to select nic and target options if default execution templates are to be used 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:24:18 -0000 It's necessary to allow user selecting the nic and target options after reading out the default execution templates. Signed-off-by: Herbert Guan --- tools/setup.py | 34 +++++++++++++++++----------------- 1 file changed, 17 insertions(+), 17 deletions(-) diff --git a/tools/setup.py b/tools/setup.py index 090dda9..cc51ec5 100755 --- a/tools/setup.py +++ b/tools/setup.py @@ -259,23 +259,23 @@ def config_execution(): opt = Option(**suites_option) suites = opt.parse_input() - nics = ['cfg'] - nics += NICS.keys() - nic_option = {'prompt': 'Choose one of nics', - 'type': 'choice', - 'help': 'Choose one of dpdk support NIC', - 'options': nics, - 'default': '0'} - opt = Option(**nic_option) - nic_type = opt.parse_input() - - target_option = {'prompt': 'Choose target for execution', - 'type': 'choice', - 'help': 'Choose one of dpdk targets', - 'options': targets, - 'default': '0'} - opt = Option(**target_option) - target = opt.parse_input() + nics = ['cfg'] + nics += NICS.keys() + nic_option = {'prompt': 'Choose one of nics', + 'type': 'choice', + 'help': 'Choose one of dpdk support NIC', + 'options': nics, + 'default': '0'} + opt = Option(**nic_option) + nic_type = opt.parse_input() + + target_option = {'prompt': 'Choose target for execution', + 'type': 'choice', + 'help': 'Choose one of dpdk targets', + 'options': targets, + 'default': '0'} + opt = Option(**target_option) + target = opt.parse_input() driver_option = {'prompt': 'Choose one of them', 'type': 'choice', -- 1.8.3.1