test suite reviews and discussions
 help / color / mirror / Atom feed
* [dts]  [PATCH V2] tests/port_control:add if else to suit cvl
@ 2020-01-09  2:48 Zeng Xiaoxiao
  2020-01-09  3:05 ` Zhu, WenhuiX
  2020-01-09  8:34 ` Tu, Lijuan
  0 siblings, 2 replies; 3+ messages in thread
From: Zeng Xiaoxiao @ 2020-01-09  2:48 UTC (permalink / raw)
  To: dts; +Cc: Zeng Xiaoxiao

Signed-off-by: Zeng Xiaoxiao <xiaoxiaox.zeng@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


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2020-01-09  8:34 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-01-09  2:48 [dts] [PATCH V2] tests/port_control:add if else to suit cvl Zeng Xiaoxiao
2020-01-09  3:05 ` Zhu, WenhuiX
2020-01-09  8:34 ` Tu, Lijuan

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).