[dts] [PATCH V2] tests/port_control:add if else to suit cvl
Tu, Lijuan
lijuan.tu at intel.com
Thu Jan 9 09:34:30 CET 2020
Applied
> -----Original Message-----
> From: dts [mailto:dts-bounces at dpdk.org] On Behalf Of Zeng Xiaoxiao
> Sent: Thursday, January 9, 2020 10:49 AM
> To: dts at dpdk.org
> Cc: Zeng, XiaoxiaoX <xiaoxiaox.zeng at intel.com>
> Subject: [dts] [PATCH V2] tests/port_control:add if else to suit cvl
>
> Signed-off-by: Zeng Xiaoxiao <xiaoxiaox.zeng at intel.com>
> ---
> tests/TestSuite_port_control.py | 10 ++++++++--
> 1 file changed, 8 insertions(+), 2 deletions(-)
>
> diff --git a/tests/TestSuite_port_control.py b/tests/TestSuite_port_control.py
> index a458add..f006ddb 100644
> --- a/tests/TestSuite_port_control.py
> +++ b/tests/TestSuite_port_control.py
> @@ -166,12 +166,18 @@ class TestPortControl(TestCase):
> terminal.execute_cmd("stop")
> terminal.execute_cmd("port stop all")
> ret = terminal.get_port_link_status(self.port_id_0)
> - self.verify(ret == "down", "port not down!")
> + if self.nic.startswith('columbiaville'):
> + self.verify(ret != "", "port status error!")
> + else:
> + self.verify(ret == "down", "port not down!")
>
> def reset_pmd_port(self, terminal):
> terminal.execute_cmd("port reset all")
> ret = terminal.get_port_link_status(self.port_id_0)
> - self.verify(ret == "down", "port reset fail!")
> + if self.nic.startswith('columbiaville'):
> + self.verify(ret != "", "port status error!")
> + else:
> + self.verify(ret == "down", "port not down!")
>
> def close_pmd_port(self, terminal):
> terminal.execute_cmd("port close all")
> --
> 1.8.3.1
More information about the dts
mailing list