From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 9E3ACA0C45; Mon, 25 Oct 2021 05:34:21 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 6B1D0407FF; Mon, 25 Oct 2021 05:34:21 +0200 (CEST) Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) by mails.dpdk.org (Postfix) with ESMTP id 146B34003E for ; Mon, 25 Oct 2021 05:34:18 +0200 (CEST) X-IronPort-AV: E=McAfee;i="6200,9189,10147"; a="229420637" X-IronPort-AV: E=Sophos;i="5.87,179,1631602800"; d="scan'208";a="229420637" Received: from orsmga005.jf.intel.com ([10.7.209.41]) by orsmga102.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 24 Oct 2021 20:34:18 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.87,179,1631602800"; d="scan'208";a="663882391" Received: from fmsmsx605.amr.corp.intel.com ([10.18.126.85]) by orsmga005.jf.intel.com with ESMTP; 24 Oct 2021 20:34:18 -0700 Received: from shsmsx601.ccr.corp.intel.com (10.109.6.141) by fmsmsx605.amr.corp.intel.com (10.18.126.85) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2242.12; Sun, 24 Oct 2021 20:34:17 -0700 Received: from shsmsx601.ccr.corp.intel.com (10.109.6.141) by SHSMSX601.ccr.corp.intel.com (10.109.6.141) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2242.12; Mon, 25 Oct 2021 11:34:15 +0800 Received: from shsmsx601.ccr.corp.intel.com ([10.109.6.141]) by SHSMSX601.ccr.corp.intel.com ([10.109.6.141]) with mapi id 15.01.2242.012; Mon, 25 Oct 2021 11:34:15 +0800 From: "Tu, Lijuan" To: "Yang, LeweiX" , "dts@dpdk.org" CC: "Yang, LeweiX" Thread-Topic: [dts] [PATCH V1] tests/vm_power_manager:restart libvirtd Thread-Index: AQHXxAu0f1s550QuzUqY0CBkU2a4hKvjGeNA Date: Mon, 25 Oct 2021 03:34:15 +0000 Message-ID: <0edd35bf79e048d0bbcfc61d12aa7bae@intel.com> References: <20211018190436.12097-1-leweix.yang@intel.com> In-Reply-To: <20211018190436.12097-1-leweix.yang@intel.com> Accept-Language: zh-CN, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: dlp-reaction: no-action dlp-version: 11.6.200.16 dlp-product: dlpe-windows x-originating-ip: [10.239.127.36] Content-Type: text/plain; charset="iso-2022-jp" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Subject: Re: [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" > -----Original Message----- > From: dts On Behalf Of Lewei Yang > Sent: 2021=1B$BG/=1B(B10=1B$B7n=1B(B19=1B$BF|=1B(B 3:05 > To: dts@dpdk.org > Cc: Yang, LeweiX > Subject: [dts] [PATCH V1] tests/vm_power_manager:restart libvirtd >=20 > 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 >=20 > Signed-off-by: Lewei Yang > --- > tests/TestSuite_vm_power_manager.py | 1 + > 1 file changed, 1 insertion(+) >=20 > 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 =3D [] > # start vm > self.vm_name =3D "vm0" > + self.dut.send_expect("service libvirtd restart", "# ") It's real a bad idea to restart service. Libvirt should have the cap to cre= ate a new vm. > self.vm =3D LibvirtKvm(self.dut, self.vm_name, self.suite_name) > channels =3D [ > {'path': '/tmp/powermonitor/%s.0' % > -- > 2.17.1