[dts] [PATCH V1]tests/TestSuite_vhost_pmd_xstats: fix lost case result when teardown fail
Tu, Lijuan
lijuan.tu at intel.com
Tue Mar 17 06:17:32 CET 2020
Applied, thanks
> -----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_pmd_xstats: fix lost case
> result when teardown fail
>
> *. fix lost case result when teardown fail
>
> Signed-off-by: Xiao Qimai <qimaix.xiao at 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
More information about the dts
mailing list