[dts] [PATCH] framework debugger: fix rerun command initialize testcase failure

Marvin Liu yong.liu at intel.com
Mon Jul 11 05:29:25 CEST 2016


test_case object parameter changed for multiple hosts, so debugger
should also changed as corresponding.

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

diff --git a/framework/debugger.py b/framework/debugger.py
index e877336..f776327 100644
--- a/framework/debugger.py
+++ b/framework/debugger.py
@@ -85,13 +85,13 @@ def rerun_command():
     new_module = imp.reload(AliveModule)
 
     # save arguments required to initialize suite
-    dut = AliveSuite.__dict__['dut']
+    duts = AliveSuite.__dict__['duts']
     tester = AliveSuite.__dict__['tester']
     target = AliveSuite.__dict__['target']
     suite = AliveSuite.__dict__['suite']
 
     for test_classname, test_class in dts.get_subclasses(new_module, TestCase):
-        suite_obj = test_class(dut, tester, target, suite)
+        suite_obj = test_class(duts, tester, target, suite)
 
         # copy all element from previous suite to reloaded suite
         dts.copy_instance_attr(AliveSuite, suite_obj)
-- 
1.9.3



More information about the dts mailing list