[dts] [PATCH V2]tests/TestSuite_vhost_multi_queue_qemu: fix teardown fail lost case result
Xiao Qimai
qimaix.xiao at intel.com
Tue Mar 17 08:04:18 CET 2020
*. fix teardown fail lost case result
Signed-off-by: Xiao Qimai <qimaix.xiao at intel.com>
---
tests/TestSuite_vhost_multi_queue_qemu.py | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/tests/TestSuite_vhost_multi_queue_qemu.py b/tests/TestSuite_vhost_multi_queue_qemu.py
index c98b4ea..c111846 100644
--- a/tests/TestSuite_vhost_multi_queue_qemu.py
+++ b/tests/TestSuite_vhost_multi_queue_qemu.py
@@ -326,7 +326,8 @@ class TestVhostMultiQueueQemu(TestCase):
Run after each test case.
Clear vhost-switch and qemu to avoid blocking the following TCs
"""
- self.vm.stop()
+ if hasattr(self, "vm"):
+ self.vm.stop()
self.dut.kill_all()
time.sleep(2)
--
1.8.3.1
More information about the dts
mailing list