[dts] [PATCH V1] tests/hotplug:detach_port function changes with dpdk

Tu, Lijuan lijuan.tu at intel.com
Mon Nov 5 08:53:42 CET 2018


I think "Port not stop" is a remainder, it means please stop port firstly and then detach.

> -----Original Message-----
> From: dts [mailto:dts-bounces at dpdk.org] On Behalf Of yaobing
> Sent: Monday, November 5, 2018 1:40 PM
> To: dts at dpdk.org
> Cc: Yao, BingX Y <bingx.y.yao at intel.com>
> Subject: [dts] [PATCH V1] tests/hotplug:detach_port function changes with
> dpdk
> 
> detach_port function changes with dpdk, its print was changed from 'Please
> close port first' to 'Port not stopped'
> 
> Signed-off-by: yaobing <bingx.y.yao at intel.com>
> ---
>  tests/TestSuite_hotplug.py | 6 +++---
>  1 file changed, 3 insertions(+), 3 deletions(-)
> 
> diff --git a/tests/TestSuite_hotplug.py b/tests/TestSuite_hotplug.py index
> 7d63b71..5528a22 100644
> --- a/tests/TestSuite_hotplug.py
> +++ b/tests/TestSuite_hotplug.py
> @@ -101,13 +101,13 @@ class TestPortHotPlug(TestCase):
>          self.dut.close_session(session_secondary)
>          self.attach(self.port)
>          self.dut.send_expect("start","testpmd>",60)
> -        self.dut.send_expect("port detach %s" % self.port,"Please close
> port first",60)
> +        self.dut.send_expect("port detach %s" % self.port,"Port not
> + stopped",60)
>          self.dut.send_expect("stop","testpmd>",60)
>          self.detach(self.port)
>          self.attach(self.port)
> 
>          self.dut.send_expect("start","testpmd>",60)
> -        self.dut.send_expect("port detach %s" % self.port,"Please close
> port first",60)
> +        self.dut.send_expect("port detach %s" % self.port,"Port not
> + stopped",60)
>          self.dut.send_expect("clear port stats %s" %
> self.port ,"testpmd>",60)
>          self.send_packet(self.port)
>          out = self.dut.send_expect("show port stats %s" %
> self.port ,"testpmd>",60) @@ -140,7 +140,7 @@ class
> TestPortHotPlug(TestCase):
>          self.attach(self.port)
> 
>          self.dut.send_expect("start","testpmd>",60)
> -        self.dut.send_expect("port detach %s" % self.port, "Please close
> port first",60)
> +        self.dut.send_expect("port detach %s" % self.port, "Port not
> + stopped",60)
>          self.dut.send_expect("clear port stats %s" %
> self.port ,"testpmd>",60)
>          self.send_packet(self.port)
>          out = self.dut.send_expect("show port stats %s" %
> self.port ,"testpmd>",60)
> --
> 2.17.2



More information about the dts mailing list