[dts] [PATCH V1] tests/generic_filter: add timeout when quit testpmd

Tu, Lijuan lijuan.tu at intel.com
Mon Nov 4 03:56:47 CET 2019


Applied, thanks

> -----Original Message-----
> From: dts [mailto:dts-bounces at dpdk.org] On Behalf Of Xiaoxiao Zeng
> Sent: Friday, October 25, 2019 3:18 AM
> To: dts at dpdk.org
> Cc: Zeng, XiaoxiaoX <xiaoxiaox.zeng at intel.com>
> Subject: [dts] [PATCH V1] tests/generic_filter: add timeout when quit
> testpmd
> 
> *.quit testpmd need more time to run.
> 
> Signed-off-by: Xiaoxiao Zeng <xiaoxiaox.zeng at intel.com>
> ---
>  tests/TestSuite_generic_filter.py | 6 +++---
>  1 file changed, 3 insertions(+), 3 deletions(-)
> 
> diff --git a/tests/TestSuite_generic_filter.py
> b/tests/TestSuite_generic_filter.py
> index 4f14fc1..3eb3123 100644
> --- a/tests/TestSuite_generic_filter.py
> +++ b/tests/TestSuite_generic_filter.py
> @@ -237,7 +237,7 @@ class TestGeneric_filter(TestCase):
>          out = self.dut.send_expect("stop", "testpmd> ")
> 
>          self.verify_result(out, tx_pkts="1", expect_queue="0")
> -        self.dut.send_expect("quit", "#")
> +        self.dut.send_expect("quit", "#", timeout=30)
> 
>      def test_priority_filter(self):
>          """
> @@ -364,7 +364,7 @@ class TestGeneric_filter(TestCase):
>                  self.filter_send_packet("fivetuple")
>                  out = self.dut.send_expect("stop", "testpmd> ")
>                  self.verify_result(out, tx_pkts="1", expect_queue="0")
> -            self.dut.send_expect("quit", "#")
> +            self.dut.send_expect("quit", "#", timeout=30)
>          else:
>              self.verify(False, "%s nic not support syn filter" % self.nic)
> 
> @@ -761,7 +761,7 @@ class TestGeneric_filter(TestCase):
>                  if int(cur_pkt) != frames_to_send:
>                      packet_flag = 0
>                      break
> -            self.dut.send_expect("quit", "#")
> +            self.dut.send_expect("quit", "#", timeout=30)
>              self.dut.send_expect("sed -i -e 's/#define
> IXGBE_NONE_MODE_TX_NB_QUEUES 128$/#define
> IXGBE_NONE_MODE_TX_NB_QUEUES 64/'
> drivers/net/ixgbe/ixgbe_ethdev.h", "# ",30)
>              self.dut.build_install_dpdk(self.target)
>              self.verify(set_filter_flag == 1, "set filters error")
> --
> 2.17.0



More information about the dts mailing list