test suite reviews and discussions
 help / color / mirror / Atom feed
* [dts] [PATCH V1]tests/TestSuite_vhost_pmd_xstats: fix lost case result when teardown fail
@ 2020-03-12 11:15 Xiao Qimai
  2020-03-12 11:15 ` [dts] [PATCH V1]tests/TestSuite_vhost_multi_queue_qemu: fix teardown fail caused lost case result Xiao Qimai
  2020-03-17  5:17 ` [dts] [PATCH V1]tests/TestSuite_vhost_pmd_xstats: fix lost case result when teardown fail Tu, Lijuan
  0 siblings, 2 replies; 5+ messages in thread
From: Xiao Qimai @ 2020-03-12 11:15 UTC (permalink / raw)
  To: dts; +Cc: Xiao Qimai

*. fix lost case result when teardown fail

Signed-off-by: Xiao Qimai <qimaix.xiao@intel.com>
---
 tests/TestSuite_vhost_pmd_xstats.py | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/tests/TestSuite_vhost_pmd_xstats.py b/tests/TestSuite_vhost_pmd_xstats.py
index 0ebbe1c..e9f79ed 100755
--- a/tests/TestSuite_vhost_pmd_xstats.py
+++ b/tests/TestSuite_vhost_pmd_xstats.py
@@ -229,7 +229,8 @@ class TestVhostPmdXstats(TestCase):
         """
         Run after each test case.
         """
-        self.vm._stop_vm()
+        if hasattr(self, "vm"):
+            self.vm._stop_vm()
         self.dut.kill_all()
         time.sleep(2)
 
-- 
1.8.3.1


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

end of thread, other threads:[~2020-03-17  6:49 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-03-12 11:15 [dts] [PATCH V1]tests/TestSuite_vhost_pmd_xstats: fix lost case result when teardown fail Xiao Qimai
2020-03-12 11:15 ` [dts] [PATCH V1]tests/TestSuite_vhost_multi_queue_qemu: fix teardown fail caused lost case result Xiao Qimai
2020-03-16  5:31   ` Tu, Lijuan
2020-03-17  6:49     ` Xiao, QimaiX
2020-03-17  5:17 ` [dts] [PATCH V1]tests/TestSuite_vhost_pmd_xstats: fix lost case result when teardown fail Tu, Lijuan

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).