test suite reviews and discussions
 help / color / mirror / Atom feed
* [dts] [PATCH V1] tests/vm_power_manager: fix script
@ 2022-04-29 13:59 Jiale Song
  0 siblings, 0 replies; only message in thread
From: Jiale Song @ 2022-04-29 13:59 UTC (permalink / raw)
  To: dts; +Cc: Jiale Song

restart libvirtd service before instantiating libvirtkvm. otherwise, 
the instantiation of libvirtkvm will fail, resulting in suite block.

Signed-off-by: Jiale Song <songx.jiale@intel.com>
---
 tests/TestSuite_vm_power_manager.py | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/tests/TestSuite_vm_power_manager.py b/tests/TestSuite_vm_power_manager.py
index 917a60f3..cc535436 100644
--- a/tests/TestSuite_vm_power_manager.py
+++ b/tests/TestSuite_vm_power_manager.py
@@ -60,6 +60,8 @@ class TestVmPowerManager(TestCase):
 
         # map between host vcpu and guest vcpu
         self.vcpu_map = []
+        # restart libvirtd service
+        self.dut.send_expect("service libvirtd restart", "# ")
         # start vm
         self.vm_name = "vm0"
         self.vm = LibvirtKvm(self.dut, self.vm_name, self.suite_name)
-- 
2.17.1


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2022-04-29  5:34 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-04-29 13:59 [dts] [PATCH V1] tests/vm_power_manager: fix script Jiale Song

test suite reviews and discussions

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://inbox.dpdk.org/dts/0 dts/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 dts dts/ http://inbox.dpdk.org/dts \
		dts@dpdk.org
	public-inbox-index dts

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://inbox.dpdk.org/inbox.dpdk.dts


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git