[dts] [PATCH] l2fwd: Kill l2fwd at end of test in case of running.

Tu, Lijuan lijuan.tu at intel.com
Tue Aug 6 11:36:14 CEST 2019


Applied, thanks

> -----Original Message-----
> From: dts [mailto:dts-bounces at dpdk.org] On Behalf Of
> pvukkisala at marvell.com
> Sent: Wednesday, July 31, 2019 2:21 PM
> To: dts at dpdk.org
> Cc: avijay at marvell.com; fmasood at marvell.com; Phanendra Vukkisala
> <pvukkisala at marvell.com>
> Subject: [dts] [PATCH] l2fwd: Kill l2fwd at end of test in case of running.
> 
> From: Phanendra Vukkisala <pvukkisala at marvell.com>
> 
> Avoids failure of next tests, if l2fwd test is failed to kill because of other
> exceptions
> 
> Signed-off-by: Phanendra Vukkisala <pvukkisala at marvell.com>
> ---
>  tests/TestSuite_l2fwd.py |    3 ++-
>  1 file changed, 2 insertions(+), 1 deletion(-)
> 
> diff --git a/tests/TestSuite_l2fwd.py b/tests/TestSuite_l2fwd.py index
> 4908fb7..b064afd 100644
> --- a/tests/TestSuite_l2fwd.py
> +++ b/tests/TestSuite_l2fwd.py
> @@ -241,7 +241,8 @@ class TestL2fwd(TestCase):
>          """
>          Run after each test case.
>          """
> -        pass
> +        self.dut.send_expect("fg", "l2fwd|# ", 5)
> +        self.dut.send_expect("^C", "# ", 5)
> 
>      def tear_down_all(self):
>          """
> --
> 1.7.9.5



More information about the dts mailing list