[V1] tests/userspace_ethtool: modify the check method of mac
Commit Message
the case check failed because the mac echoed by the "macaddr" command of dpdk-ethtool
changed to uppercase letters. modify the script to solve the problem
Signed-off-by: Jiale Song <songx.jiale@intel.com>
---
tests/TestSuite_userspace_ethtool.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
mode change 100644 => 100755 tests/TestSuite_userspace_ethtool.py
Comments
> -----Original Message-----
> From: dts <dts-bounces@dpdk.org> On Behalf Of Jiale Song
> Sent: 2021年9月16日 16:24
> To: dts@dpdk.org
> Cc: Jiale, SongX <songx.jiale@intel.com>
> Subject: [dts] [PATCH V1] tests/userspace_ethtool: modify the check method of
> mac
>
> the case check failed because the mac echoed by the "macaddr" command of
> dpdk-ethtool changed to uppercase letters. modify the script to solve the
> problem
>
> Signed-off-by: Jiale Song <songx.jiale@intel.com>
Applied
old mode 100644
new mode 100755
@@ -510,7 +510,7 @@ class TestUserspaceEthtool(TestCase):
port = self.ports[index]
mac = self.dut.ports_info[port]['mac']
dump_mac = self.strip_mac(index)
- self.verify(mac == dump_mac, "Userspace tool failed to dump mac")
+ self.verify(mac.lower() == dump_mac.lower(), "Userspace tool failed to dump mac")
self.dut.send_expect("macaddr %d %s" % (port, valid_mac), "EthApp>")
dump_mac = self.strip_mac(index)
self.verify(dump_mac == valid_mac, "Userspace tool failed to set mac")