[dts] [PATCH] tests/TestSuite_eventdev_perf.py : Moved Unbind_eventdev_port function call to tear_down_all tests/TestSuite_eventdev_pipeline_perf.py : Moved Unbind_eventdev_port function call to tear_down_all

Tu, Lijuan lijuan.tu at intel.com
Wed Jul 3 07:56:54 CEST 2019


Applied, thanks

> -----Original Message-----
> From: dts [mailto:dts-bounces at dpdk.org] On Behalf Of thaq at marvell.com
> Sent: Monday, July 1, 2019 1:59 PM
> To: dts at dpdk.org
> Cc: fmasood at marvell.com; avijay at marvell.com; Thanseerulhaq
> <thaq at marvell.com>
> Subject: [dts] [PATCH] tests/TestSuite_eventdev_perf.py : Moved
> Unbind_eventdev_port function call to tear_down_all
> tests/TestSuite_eventdev_pipeline_perf.py : Moved Unbind_eventdev_port
> function call to tear_down_all
> 
> From: Thanseerulhaq <thaq at marvell.com>
> 
> Signed-off-by: Thanseerulhaq <thaq at marvell.com>
> ---
>  tests/TestSuite_eventdev_perf.py          | 4 ++--
>  tests/TestSuite_eventdev_pipeline_perf.py | 4 ++--
>  2 files changed, 4 insertions(+), 4 deletions(-)
> 
> diff --git a/tests/TestSuite_eventdev_perf.py
> b/tests/TestSuite_eventdev_perf.py
> index d950a87..a2520a8 100644
> --- a/tests/TestSuite_eventdev_perf.py
> +++ b/tests/TestSuite_eventdev_perf.py
> @@ -1596,11 +1596,11 @@ class
> TestEventdevPerf(TestCase,IxiaPacketGenerator):
>          """
>          Run after each test case.
>          """
> -        self.dut.send_expect("^C", "# ", 5)
> -
> self.dut.unbind_eventdev_port(port_to_unbind=self.eventdev_device_bus_i
> d)
> 
>      def tear_down_all(self):
>          """
>          Run after each test suite.
>          """
> +        self.dut.send_expect("^C", "# ", 5)
> +
> self.dut.unbind_eventdev_port(port_to_unbind=self.eventdev_device_bus_i
> d)
>          self.dut.kill_all()
> diff --git a/tests/TestSuite_eventdev_pipeline_perf.py
> b/tests/TestSuite_eventdev_pipeline_perf.py
> index 1d8a374..6a4bcad 100644
> --- a/tests/TestSuite_eventdev_pipeline_perf.py
> +++ b/tests/TestSuite_eventdev_pipeline_perf.py
> @@ -824,11 +824,11 @@ class
> TestEventdevPipelinePerf(TestCase,IxiaPacketGenerator):
>          """
>          Run after each test case.
>          """
> -        self.dut.send_expect("^C", "# ", 5)
> -
> self.dut.unbind_eventdev_port(port_to_unbind=self.eventdev_device_bus_i
> d)
> 
>      def tear_down_all(self):
>          """
>          Run after each test suite.
>          """
> +        self.dut.send_expect("^C", "# ", 5)
> +
> self.dut.unbind_eventdev_port(port_to_unbind=self.eventdev_device_bus_i
> d)
>          self.dut.kill_all()
> --
> 1.8.3.1



More information about the dts mailing list