[dts] [PATCH V2]tests/TestSuite_vhost_multi_queue_qemu: fix teardown fail lost case result

Tu, Lijuan lijuan.tu at intel.com
Fri Mar 20 09:09:06 CET 2020


Applied, thanks

> -----Original Message-----
> From: dts [mailto:dts-bounces at dpdk.org] On Behalf Of Xiao Qimai
> Sent: Tuesday, March 17, 2020 3:04 PM
> To: dts at dpdk.org
> Cc: Xiao, QimaiX <qimaix.xiao at intel.com>
> Subject: [dts] [PATCH V2]tests/TestSuite_vhost_multi_queue_qemu: fix
> teardown fail lost case result
> 
> *. 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