[prev in list] [next in list] [prev in thread] [next in thread] 

List:       dpdk-dts
Subject:    [dts] [PATCH V1] tests/vm_power_manager: fix script
From:       Jiale Song <songx.jiale () intel ! com>
Date:       2022-04-29 5:34:09
Message-ID: 20220429135913.1862-1-songx.jiale () intel ! com
[Download RAW message or body]

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

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic