From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga02.intel.com (mga02.intel.com [134.134.136.20]) by dpdk.org (Postfix) with ESMTP id D34418D8F for ; Tue, 19 Jan 2016 06:40:09 +0100 (CET) Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by orsmga101.jf.intel.com with ESMTP; 18 Jan 2016 21:40:08 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.22,315,1449561600"; d="scan'208";a="896147789" Received: from shvmail01.sh.intel.com ([10.239.29.42]) by fmsmga002.fm.intel.com with ESMTP; 18 Jan 2016 21:40:07 -0800 Received: from shecgisg003.sh.intel.com (shecgisg003.sh.intel.com [10.239.29.90]) by shvmail01.sh.intel.com with ESMTP id u0J5e5fn002561; Tue, 19 Jan 2016 13:40:05 +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 u0J5e28k003385; Tue, 19 Jan 2016 13:40:04 +0800 Received: (from yliu84x@localhost) by shecgisg003.sh.intel.com (8.13.6/8.13.6/Submit) id u0J5e2e6003381; Tue, 19 Jan 2016 13:40:02 +0800 From: Yong Liu To: dts@dpdk.org Date: Tue, 19 Jan 2016 13:40:01 +0800 Message-Id: <1453182001-3347-1-git-send-email-yong.liu@intel.com> X-Mailer: git-send-email 1.7.4.1 Subject: [dts] [PATCH] framework dts: skip bind nic driver when no driver configured 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: Tue, 19 Jan 2016 05:40:10 -0000 Some nic may not need bind to igb_uio. When drivername paramater is blank, skip bind nic device. Signed-off-by: Marvin Liu diff --git a/framework/dts.py b/framework/dts.py index 8e0be62..2dd511b 100644 --- a/framework/dts.py +++ b/framework/dts.py @@ -297,6 +297,7 @@ def dts_run_target(crbInst, targets, test_suites, nic, scenario): """ Run each target in execution targets. """ + global drivername if scenario != '': scene = VirtScene(dut, tester, scenario) else: @@ -317,7 +318,10 @@ def dts_run_target(crbInst, targets, test_suites, nic, scenario): if not scene.host_bound: dut.set_target(target, bind_dev=False) else: - dut.set_target(target) + if drivername == "": + dut.set_target(target, bind_dev=False) + else: + dut.set_target(target) except AssertionError as ex: log_handler.error(" TARGET ERROR: " + str(ex)) result.add_failed_target(result.dut, target, str(ex)) -- 1.9.3