From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga01.intel.com (mga01.intel.com [192.55.52.88]) by dpdk.org (Postfix) with ESMTP id 06DD83B5 for ; Mon, 12 Jun 2017 08:04:34 +0200 (CEST) Received: from fmsmga006.fm.intel.com ([10.253.24.20]) by fmsmga101.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 11 Jun 2017 23:04:33 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.39,332,1493708400"; d="scan'208";a="113683579" Received: from dpdk-test38.sh.intel.com ([10.239.129.178]) by fmsmga006.fm.intel.com with ESMTP; 11 Jun 2017 23:04:33 -0700 From: Marvin Liu To: dts@dpdk.org Cc: Marvin Liu Date: Mon, 12 Jun 2017 02:02:37 -0400 Message-Id: <1497247357-24344-1-git-send-email-yong.liu@intel.com> X-Mailer: git-send-email 1.9.3 Subject: [dts] [PATCH V1] framework: execution file crbs match item changed 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: Mon, 12 Jun 2017 06:04:35 -0000 CRBs name in execution file changed from DUT IP to Section name in crbs.conf. It will be helpful for creating multiple executions on same DUT. Signed-off-by: Marvin Liu diff --git a/framework/config.py b/framework/config.py index 6c3a3b0..8d44bfe 100644 --- a/framework/config.py +++ b/framework/config.py @@ -208,6 +208,7 @@ class CrbsConf(UserConf): for name in sections: crb = self.DEF_CRB.copy() + crb['section'] = name crb_confs = self.crbs_conf.load_section(name) if not crb_confs: continue diff --git a/framework/dts.py b/framework/dts.py index 2bb133b..3849866 100644 --- a/framework/dts.py +++ b/framework/dts.py @@ -498,14 +498,14 @@ def run_all(config_file, pkgName, git, patch, skip_setup, dts_parse_param(config, section) # verify if the delimiter is good if the lists are vertical - dutIPs, targets, test_suites = dts_parse_config(config, section) - for dutIP in dutIPs: - log_handler.info("\nDUT " + dutIP) + duts, targets, test_suites = dts_parse_config(config, section) + for dut in duts: + log_handler.info("\nDUT " + dut) # look up in crbs - to find the matching IP - for dutIP in dutIPs: + for dut in duts: for crb in crbs: - if crb['IP'] == dutIP: + if crb['section'] == dut: crbInsts.append(crb) break @@ -514,7 +514,7 @@ def run_all(config_file, pkgName, git, patch, skip_setup, log_handler.error(" SKIP UNKNOWN CRB") continue - result.dut = dutIPs[0] + result.dut = duts[0] # init dut, tester crb duts, tester = dts_crbs_init(crbInsts, skip_setup, read_cache, project, base_dir, serializer, virttype) -- 1.9.3