test suite reviews and discussions
 help / color / mirror / Atom feed
* [dts] [PATCH] tests/power_bidirection_channel: refactor power test
@ 2021-07-21 13:03 Harneet Singh
  2021-07-21 13:13 ` Pattan, Reshma
  0 siblings, 1 reply; 2+ messages in thread
From: Harneet Singh @ 2021-07-21 13:03 UTC (permalink / raw)
  To: dts; +Cc: Harneet Singh

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(+)

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


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2021-07-21 13:14 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-07-21 13:03 [dts] [PATCH] tests/power_bidirection_channel: refactor power test Harneet Singh
2021-07-21 13:13 ` Pattan, Reshma

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).