From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id 45339A0559; Tue, 17 Mar 2020 08:09:10 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 06BAC25D9; Tue, 17 Mar 2020 08:09:10 +0100 (CET) Received: from mga02.intel.com (mga02.intel.com [134.134.136.20]) by dpdk.org (Postfix) with ESMTP id A993FCF3 for ; Tue, 17 Mar 2020 08:09:07 +0100 (CET) IronPort-SDR: 8TAykIn8DLBoD3Mvip5/jM+L8sCNgx1/VCYa6jzn/owqh5hHRqzFQRF+S/y0+gtiyp+HqHlwDB SRiKUJQwhLVw== X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga002.jf.intel.com ([10.7.209.21]) by orsmga101.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 17 Mar 2020 00:09:04 -0700 IronPort-SDR: 26t6ROIEqdMj8zs1NLT5x+BHY9lM89NuJZlMmodk1eRMkJB8VPR+XrA0l06I7zMYhefUHZNtpc rgDQVd2RYD3w== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.70,563,1574150400"; d="scan'208";a="262941856" Received: from unknown (HELO dpdk-xiaoqimai-dut.sh.intel.com) ([10.240.183.52]) by orsmga002.jf.intel.com with ESMTP; 17 Mar 2020 00:09:03 -0700 From: Xiao Qimai To: dts@dpdk.org Cc: Xiao Qimai Date: Tue, 17 Mar 2020 15:04:18 +0800 Message-Id: <1584428658-181894-1-git-send-email-qimaix.xiao@intel.com> X-Mailer: git-send-email 1.8.3.1 Subject: [dts] [PATCH V2]tests/TestSuite_vhost_multi_queue_qemu: fix teardown fail lost case result 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: , Errors-To: dts-bounces@dpdk.org Sender: "dts" *. fix teardown fail lost case result Signed-off-by: Xiao Qimai --- tests/TestSuite_vhost_multi_queue_qemu.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/TestSuite_vhost_multi_queue_qemu.py b/tests/TestSuite_vhost_multi_queue_qemu.py index c98b4ea..c111846 100644 --- a/tests/TestSuite_vhost_multi_queue_qemu.py +++ b/tests/TestSuite_vhost_multi_queue_qemu.py @@ -326,7 +326,8 @@ class TestVhostMultiQueueQemu(TestCase): Run after each test case. Clear vhost-switch and qemu to avoid blocking the following TCs """ - self.vm.stop() + if hasattr(self, "vm"): + self.vm.stop() self.dut.kill_all() time.sleep(2) -- 1.8.3.1