From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga11.intel.com (mga11.intel.com [192.55.52.93]) by dpdk.org (Postfix) with ESMTP id DB57611A2 for ; Tue, 14 Jul 2015 07:02:46 +0200 (CEST) Received: from orsmga002.jf.intel.com ([10.7.209.21]) by fmsmga102.fm.intel.com with ESMTP; 13 Jul 2015 22:02:46 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.15,469,1432623600"; d="scan'208";a="763930788" Received: from shvmail01.sh.intel.com ([10.239.29.42]) by orsmga002.jf.intel.com with ESMTP; 13 Jul 2015 22:02:45 -0700 Received: from shecgisg003.sh.intel.com (shecgisg003.sh.intel.com [10.239.29.90]) by shvmail01.sh.intel.com with ESMTP id t6E52hJN014660; Tue, 14 Jul 2015 13:02:43 +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 t6E52fcR012698; Tue, 14 Jul 2015 13:02:43 +0800 Received: (from yliu84x@localhost) by shecgisg003.sh.intel.com (8.13.6/8.13.6/Submit) id t6E52flo012694; Tue, 14 Jul 2015 13:02:41 +0800 From: Yong Liu To: dts@dpdk.org Date: Tue, 14 Jul 2015 13:02:40 +0800 Message-Id: <1436850160-12659-1-git-send-email-yong.liu@intel.com> X-Mailer: git-send-email 1.7.4.1 Subject: [dts] [PATCH] fix bug that virt dut created by virtual scenario module can't init log and close session 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: Tue, 14 Jul 2015 05:02:47 -0000 From: Marvin Liu Signed-off-by: Marvin Liu diff --git a/framework/virt_scene.py b/framework/virt_scene.py index cd566ac..73d2cdf 100644 --- a/framework/virt_scene.py +++ b/framework/virt_scene.py @@ -66,6 +66,9 @@ class VirtScene(object): self.auto_portmap = True self.vm_type = 'kvm' + # for vm dut init_log + self.host_dut.test_classname = 'dts' + def load_config(self): try: self.vm_confs = {} @@ -433,7 +436,7 @@ class VirtScene(object): for vm_obj in vm_info.keys(): if 'session' in vm_obj: vm_info[vm_obj].kill_all() - vm_info[vm_obj].close() + vm_info[vm_obj].close_sessions() vm_info[vm_obj].logger.logger_exit() for vm_obj in vm_info.keys(): if 'session' not in vm_obj: -- 1.9.3