[dts] [PATCH V2] tests/port_control:add if else to suit cvl

Zhu, WenhuiX wenhuix.zhu at intel.com
Thu Jan 9 04:05:41 CET 2020


Tested-by: Zhu, WenhuiX <wenhuix.zhu at intel.com>

-----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

-------------- next part --------------
A non-text attachment was scrubbed...
Name: TestPortControl.log
Type: application/octet-stream
Size: 33698 bytes
Desc: TestPortControl.log
URL: <http://mails.dpdk.org/archives/dts/attachments/20200109/65aea09f/attachment.obj>


More information about the dts mailing list