From patchwork Mon Oct 18 19:04:36 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lewei Yang X-Patchwork-Id: 101970 Return-Path: X-Original-To: patchwork@inbox.dpdk.org Delivered-To: patchwork@inbox.dpdk.org Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 36D78A0C43; Mon, 18 Oct 2021 12:33:42 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 2651F40142; Mon, 18 Oct 2021 12:33:42 +0200 (CEST) Received: from mga18.intel.com (mga18.intel.com [134.134.136.126]) by mails.dpdk.org (Postfix) with ESMTP id 8BF6C40141 for ; Mon, 18 Oct 2021 12:33:40 +0200 (CEST) X-IronPort-AV: E=McAfee;i="6200,9189,10140"; a="215148471" X-IronPort-AV: E=Sophos;i="5.85,381,1624345200"; d="scan'208";a="215148471" Received: from orsmga008.jf.intel.com ([10.7.209.65]) by orsmga106.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 18 Oct 2021 03:33:39 -0700 X-IronPort-AV: E=Sophos;i="5.85,381,1624345200"; d="scan'208";a="493531811" Received: from unknown (HELO localhost.localdomain) ([10.240.183.102]) by orsmga008-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 18 Oct 2021 03:33:38 -0700 From: Lewei Yang To: dts@dpdk.org Cc: Lewei Yang Date: Mon, 18 Oct 2021 19:04:36 +0000 Message-Id: <20211018190436.12097-1-leweix.yang@intel.com> X-Mailer: git-send-email 2.17.1 Subject: [dts] [PATCH V1] tests/vm_power_manager:restart libvirtd X-BeenThere: dts@dpdk.org X-Mailman-Version: 2.1.29 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" dut needs to create a new vm,but a suite has created a vm before. restart libvirtd to make sure new vm can be created Signed-off-by: Lewei Yang --- tests/TestSuite_vm_power_manager.py | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/TestSuite_vm_power_manager.py b/tests/TestSuite_vm_power_manager.py index f650ba28..455383f7 100644 --- a/tests/TestSuite_vm_power_manager.py +++ b/tests/TestSuite_vm_power_manager.py @@ -63,6 +63,7 @@ class TestVmPowerManager(TestCase): self.vcpu_map = [] # start vm self.vm_name = "vm0" + self.dut.send_expect("service libvirtd restart", "# ") self.vm = LibvirtKvm(self.dut, self.vm_name, self.suite_name) channels = [ {'path': '/tmp/powermonitor/%s.0' %