From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga14.intel.com (mga14.intel.com [192.55.52.115]) by dpdk.org (Postfix) with ESMTP id 7D9D01396 for ; Mon, 11 Jul 2016 05:29:32 +0200 (CEST) Received: from fmsmga004.fm.intel.com ([10.253.24.48]) by fmsmga103.fm.intel.com with ESMTP; 10 Jul 2016 20:29:31 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.28,344,1464678000"; d="scan'208";a="136963776" Received: from shvmail01.sh.intel.com ([10.239.29.42]) by fmsmga004.fm.intel.com with ESMTP; 10 Jul 2016 20:29:30 -0700 Received: from shecgisg003.sh.intel.com (shecgisg003.sh.intel.com [10.239.29.90]) by shvmail01.sh.intel.com with ESMTP id u6B3TThZ026170; Mon, 11 Jul 2016 11:29:29 +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 u6B3TQvk017482; Mon, 11 Jul 2016 11:29:28 +0800 Received: (from yliu84x@localhost) by shecgisg003.sh.intel.com (8.13.6/8.13.6/Submit) id u6B3TQqC017478; Mon, 11 Jul 2016 11:29:26 +0800 From: Marvin Liu To: dts@dpdk.org Cc: Marvin Liu Date: Mon, 11 Jul 2016 11:29:25 +0800 Message-Id: <1468207765-17446-1-git-send-email-yong.liu@intel.com> X-Mailer: git-send-email 1.7.4.1 Subject: [dts] [PATCH] framework debugger: fix rerun command initialize testcase failure 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: Mon, 11 Jul 2016 03:29:33 -0000 test_case object parameter changed for multiple hosts, so debugger should also changed as corresponding. Signed-off-by: Marvin Liu 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