[dts] [PATCH 5/5] Skip setup host target when virtual scenario module has done it

Yong Liu yong.liu at intel.com
Thu Jul 16 15:54:48 CEST 2015


From: Marvin Liu <yong.liu at intel.com>

Signed-off-by: Marvin Liu <yong.liu at intel.com>

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



More information about the dts mailing list