Message ID | 20210721130353.1003215-1-harneet.singh@intel.com (mailing list archive) |
---|---|
State | Changes Requested |
Headers | show |
Series | tests/power_bidirection_channel: refactor power test | expand |
> -----Original Message----- > From: dts <dts-bounces@dpdk.org> On Behalf Of Harneet Singh > Sent: Wednesday, July 21, 2021 2:04 PM > To: dts@dpdk.org > Cc: Singh, Harneet <harneet.singh@intel.com> > Subject: [dts] [PATCH] tests/power_bidirection_channel: refactor power test > > 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 <harneet.singh@intel.com> > --- This is not complete fix. Have to spin new patch. Nacked-By: Reshma Pattan <reshma.pattan@intel.com>
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()
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 <harneet.singh@intel.com> --- tests/TestSuite_power_bidirection_channel.py | 6 ++++++ 1 file changed, 6 insertions(+)