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

Tu, Lijuan lijuan.tu at intel.com
Wed Aug 7 04:23:34 CEST 2019


Applied, thanks

> -----Original Message-----
> From: dts [mailto:dts-bounces at dpdk.org] On Behalf Of changqingxwu
> Sent: Thursday, July 11, 2019 12:15 PM
> To: dts at dpdk.org
> Cc: Wu, ChangqingX <changqingx.wu at intel.com>
> Subject: [dts] [PATCH V1] tests/userspace_ethtool:Optimize test results
> 
> 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