test suite reviews and discussions
 help / color / mirror / Atom feed
From: Harneet Singh <harneet.singh@intel.com>
To: dts@dpdk.org
Cc: Harneet Singh <harneet.singh@intel.com>
Subject: [dts] [PATCH] tests/power_bidirection_channel: refactor power test
Date: Wed, 21 Jul 2021 13:03:53 +0000	[thread overview]
Message-ID: <20210721130353.1003215-1-harneet.singh@intel.com> (raw)

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


             reply	other threads:[~2021-07-21 13:03 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-07-21 13:03 Harneet Singh [this message]
2021-07-21 13:13 ` Pattan, Reshma

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20210721130353.1003215-1-harneet.singh@intel.com \
    --to=harneet.singh@intel.com \
    --cc=dts@dpdk.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).