tests/power_bidirection_channel: refactor power test
Commit Message
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(+)
Comments
> -----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>
@@ -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()