From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) by dpdk.org (Postfix) with ESMTP id 7304CC316 for ; Thu, 16 Jul 2015 15:55:09 +0200 (CEST) Received: from orsmga001.jf.intel.com ([10.7.209.18]) by orsmga102.jf.intel.com with ESMTP; 16 Jul 2015 06:55:08 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.15,488,1432623600"; d="scan'208";a="730073450" Received: from shvmail01.sh.intel.com ([10.239.29.42]) by orsmga001.jf.intel.com with ESMTP; 16 Jul 2015 06:55:08 -0700 Received: from shecgisg003.sh.intel.com (shecgisg003.sh.intel.com [10.239.29.90]) by shvmail01.sh.intel.com with ESMTP id t6GDt6OE006835; Thu, 16 Jul 2015 21:55:06 +0800 Received: from shecgisg003.sh.intel.com (localhost [127.0.0.1]) by shecgisg003.sh.intel.com (8.13.6/8.13.6/SuSE Linux 0.8) with ESMTP id t6GDt3Kc027094; Thu, 16 Jul 2015 21:55:05 +0800 Received: (from yliu84x@localhost) by shecgisg003.sh.intel.com (8.13.6/8.13.6/Submit) id t6GDt3vX027090; Thu, 16 Jul 2015 21:55:03 +0800 From: Yong Liu To: dts@dpdk.org Date: Thu, 16 Jul 2015 21:54:48 +0800 Message-Id: <1437054888-27021-6-git-send-email-yong.liu@intel.com> X-Mailer: git-send-email 1.7.4.1 In-Reply-To: <1437054888-27021-1-git-send-email-yong.liu@intel.com> References: <1437054888-27021-1-git-send-email-yong.liu@intel.com> Subject: [dts] [PATCH 5/5] Skip setup host target when virtual scenario module has done it 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: Thu, 16 Jul 2015 13:55:10 -0000 From: Marvin Liu Signed-off-by: Marvin Liu diff --git a/framework/dts.py b/framework/dts.py index 6e38cac..cc3744b 100644 --- a/framework/dts.py +++ b/framework/dts.py @@ -301,7 +301,9 @@ def dts_run_target(crbInst, targets, test_suites, nic, scenario): try: if scene: scene.set_target(target) - dut.set_target(target, bind_dev=False) + # skip set_target when host has been setup by scenario + if not scene.host_bound: + dut.set_target(target, bind_dev=False) else: dut.set_target(target) except AssertionError as ex: -- 1.9.3