[dts] [PATCH] tests/power_bidirection_channel: refactor power test
Harneet Singh
harneet.singh at intel.com
Wed Jul 21 15:03:53 CEST 2021
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 at intel.com>
---
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
More information about the dts
mailing list