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 A2740A0C50; Wed, 21 Jul 2021 15:03:59 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 6F4254014D; Wed, 21 Jul 2021 15:03:59 +0200 (CEST) Received: from mga12.intel.com (mga12.intel.com [192.55.52.136]) by mails.dpdk.org (Postfix) with ESMTP id 4F00140143 for ; Wed, 21 Jul 2021 15:03:57 +0200 (CEST) X-IronPort-AV: E=McAfee;i="6200,9189,10051"; a="191011095" X-IronPort-AV: E=Sophos;i="5.84,258,1620716400"; d="scan'208";a="191011095" Received: from orsmga001.jf.intel.com ([10.7.209.18]) by fmsmga106.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 21 Jul 2021 06:03:56 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.84,258,1620716400"; d="scan'208";a="496592440" Received: from silpixa00400900.ir.intel.com ([10.243.22.130]) by orsmga001.jf.intel.com with ESMTP; 21 Jul 2021 06:03:55 -0700 From: Harneet Singh To: dts@dpdk.org Cc: Harneet Singh Date: Wed, 21 Jul 2021 13:03:53 +0000 Message-Id: <20210721130353.1003215-1-harneet.singh@intel.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [dts] [PATCH] tests/power_bidirection_channel: refactor power test 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" This test is getting blocked when run on automated nightly testing runs, need to check if this patch fixes that. Signed-off-by: Harneet Singh --- tests/TestSuite_power_bidirection_channel.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tests/TestSuite_power_bidirection_channel.py b/tests/TestSuite_power_bidirection_channel.py index 1aa02976..16af4f28 100644 --- a/tests/TestSuite_power_bidirection_channel.py +++ b/tests/TestSuite_power_bidirection_channel.py @@ -535,6 +535,12 @@ class TestPowerBidirectionChannel(TestCase): """ Run at the start of each test suite. """ + self.vm_name = 'vm0' + cmd_fmt = 'virsh {0} {1} > /dev/null 2>&1'.format + cmds = [ + [cmd_fmt('shutdown', self.vm_name), '# '], + [cmd_fmt('undefine', self.vm_name), '# '], ] + self.d_a_con(cmds) self.dut_ports = self.dut.get_ports(self.nic) self.verify(len(self.dut_ports) >= 1, "Not enough ports") self.check_cpupower_tool() -- 2.25.1