[dts] [PATCH V1] tests/userspace_ethtool:Optimize test results

changqingxwu changqingx.wu at intel.com
Thu Jul 11 06:15:03 CEST 2019


Signed-off-by: changqingxwu <changqingx.wu at intel.com>
---
 tests/TestSuite_userspace_ethtool.py | 5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)

diff --git a/tests/TestSuite_userspace_ethtool.py b/tests/TestSuite_userspace_ethtool.py
index c774552..dd8c9a6 100644
--- a/tests/TestSuite_userspace_ethtool.py
+++ b/tests/TestSuite_userspace_ethtool.py
@@ -316,9 +316,6 @@ class TestUserspaceEthtool(TestCase, IxiaPacketGenerator):
         portsinfo = []
         ori_drivers = []
         
-        if self.nic.startswith("fortville"):
-            return
-        
         for portid in range(len(self.ports)):
             self.dut.send_expect("regs %d regs_%d.bin" % (portid, portid), "EthApp>")
             portinfo = {'portid': portid, 'reg_file': 'regs_%d.bin' % portid}
@@ -338,7 +335,7 @@ class TestUserspaceEthtool(TestCase, IxiaPacketGenerator):
             # get linux interface
             intf = netdev.get_interface_name()
             out = self.dut.send_expect("ethtool -d %s raw off file %s" % (intf, portinfo['reg_file']), "# ")
-            self.verify(("LINKS" in out and "FCTRL" in out), "Failed to dump %s registers" % intf)
+            self.verify(("register" in out and "CTRL" in out), "Failed to dump %s registers" % intf)
 
         for index in range(len(self.ports)):
             # bind to original driver
-- 
2.17.2



More information about the dts mailing list