summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarvin Liu <yong.liu@intel.com>2015-07-16 21:54:48 +0800
committerMarvin Liu <yong.liu@intel.com>2015-07-17 10:50:04 +0800
commit298a0123da902dd90bdcd856e71f4b4083dd36d1 (patch)
treed8f35b979d25ec4c149e2d80ff195b30cff89eeb
parent9e67d33fd9f25c25d6e8919a4b88eef79d8119d7 (diff)
downloaddts-298a0123da902dd90bdcd856e71f4b4083dd36d1.zip
dts-298a0123da902dd90bdcd856e71f4b4083dd36d1.tar.gz
dts-298a0123da902dd90bdcd856e71f4b4083dd36d1.tar.xz
Skip setup host target when virtual scenario module has done it
Signed-off-by: Marvin Liu <yong.liu@intel.com>
-rw-r--r--framework/dts.py4
1 files changed, 3 insertions, 1 deletions
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: