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 1D7B52935 for ; Wed, 26 Oct 2016 07:48:21 +0200 (CEST) Received: from orsmga003.jf.intel.com ([10.7.209.27]) by fmsmga103.fm.intel.com with ESMTP; 25 Oct 2016 22:48:20 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.31,549,1473145200"; d="scan'208";a="894056559" Received: from shvmail01.sh.intel.com ([10.239.29.42]) by orsmga003.jf.intel.com with ESMTP; 25 Oct 2016 22:48:20 -0700 Received: from shecgisg003.sh.intel.com (shecgisg003.sh.intel.com [10.239.29.90]) by shvmail01.sh.intel.com with ESMTP id u9Q5mIhQ014702; Wed, 26 Oct 2016 13:48:18 +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 u9Q5mFF8017495; Wed, 26 Oct 2016 13:48:17 +0800 Received: (from yliu84x@localhost) by shecgisg003.sh.intel.com (8.13.6/8.13.6/Submit) id u9Q5mFos017491; Wed, 26 Oct 2016 13:48:15 +0800 From: Marvin Liu To: dts@dpdk.org Date: Wed, 26 Oct 2016 13:48:14 +0800 Message-Id: <1477460894-17459-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 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: Wed, 26 Oct 2016 05:48:22 -0000 When input rerun command in debug console, will reload suite module. Signed-off-by: Marvin Liu diff --git a/framework/debugger.py b/framework/debugger.py index b6f00b8..8375590 100644 --- a/framework/debugger.py +++ b/framework/debugger.py @@ -88,7 +88,7 @@ def rerun_command(): duts = AliveSuite.__dict__['duts'] tester = AliveSuite.__dict__['tester'] target = AliveSuite.__dict__['target'] - suite = AliveSuite.__dict__['suite'] + suite = AliveSuite.__dict__['suite_name'] for test_classname, test_class in get_subclasses(new_module, TestCase): suite_obj = test_class(duts, tester, target, suite) @@ -96,7 +96,7 @@ def rerun_command(): # copy all element from previous suite to reloaded suite copy_instance_attr(AliveSuite, suite_obj) # re-run specified test case - for case in suite_obj._get_test_cases(suite_obj, r'%s' % AliveCase): + for case in suite_obj._get_test_cases(r'%s' % AliveCase): if callable(case): case() -- 1.9.3