[dts] [PATCH V2] tests/port_control:add if else to suit cvl
Zeng Xiaoxiao
xiaoxiaox.zeng at intel.com
Thu Jan 9 03:48:38 CET 2020
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