[dts] [PATCH V1] tests/userspace_ethtool:change judgment conditions
Yao, BingX Y
bingx.y.yao at intel.com
Wed Jun 26 09:36:29 CEST 2019
Tested-by: Yao, BingX Y <bingx.y.yao at intel.com>
-----Original Message-----
From: dts [mailto:dts-bounces at dpdk.org] On Behalf Of zhuwenhui
Sent: Wednesday, June 26, 2019 3:40 PM
To: dts at dpdk.org
Cc: Zhu, WenhuiX <wenhuix.zhu at intel.com>
Subject: [dts] [PATCH V1] tests/userspace_ethtool:change judgment conditions
The number of pkts is 4, and the judgment condition is also changed to 4.
Signed-off-by: zhuwenhui <wenhuix.zhu at intel.com>
---
tests/TestSuite_userspace_ethtool.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/tests/TestSuite_userspace_ethtool.py b/tests/TestSuite_userspace_ethtool.py
index 71397f6..c774552 100644
--- a/tests/TestSuite_userspace_ethtool.py
+++ b/tests/TestSuite_userspace_ethtool.py
@@ -567,7 +567,7 @@ class TestUserspaceEthtool(TestCase, IxiaPacketGenerator):
pkt = Packet(pkt_len=pkt_size)
pkt.send_pkt(tx_port=intf, count=4)
rx_pkts, _ = self.strip_portstats(index)
- self.verify(rx_pkts == ori_rx_pkts + 1, "Packet match mtu not forwarded as expected")
+ self.verify(rx_pkts == ori_rx_pkts + 4, "Packet match mtu not forwarded as expected")
pkt = Packet(pkt_len=mtu + 1 + HEADER_SIZE['eth'])
pkt.send_pkt(tx_port=intf, count=4)
rx_pkts_over, _ = self.strip_portstats(index)
--
2.17.2
More information about the dts
mailing list