[dts] [PATCH V1]tests/TestSuite_vhost_multi_queue_qemu: fix teardown fail caused lost case result
Tu, Lijuan
lijuan.tu at intel.com
Mon Mar 16 06:31:44 CET 2020
> -----Original Message-----
> From: dts [mailto:dts-bounces at dpdk.org] On Behalf Of Xiao Qimai
> Sent: Thursday, March 12, 2020 7:16 PM
> To: dts at dpdk.org
> Cc: Xiao, QimaiX <qimaix.xiao at intel.com>
> Subject: [dts] [PATCH V1]tests/TestSuite_vhost_multi_queue_qemu: fix
> teardown fail caused lost case result
>
> *. fix 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..7dcb18c 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()
> + is hasattr(self, "vm"):
[Lijuan] is should be if
> + self.vm.stop()
> self.dut.kill_all()
> time.sleep(2)
>
> --
> 1.8.3.1
More information about the dts
mailing list