[dts] [PATCT V1]tests: change the pass criteria for kni statistic
Lei
lei.a.yao at intel.com
Wed Feb 13 13:55:39 CET 2019
From: Lei Yao <lei.a.yao at intel.com>
On some platform, because the LLDP packets, the packet statisic
number will not be so accurate.
---
tests/TestSuite_kni.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/tests/TestSuite_kni.py b/tests/TestSuite_kni.py
index a6dc030..04ed218 100644
--- a/tests/TestSuite_kni.py
+++ b/tests/TestSuite_kni.py
@@ -782,7 +782,7 @@ class TestKni(TestCase):
m = re.search(rx_match, out)
rx_packets = int(m.group(1))
- self.verify(rx_packets == (previous_rx_packets + 5),
+ self.verify(rx_packets >= (previous_rx_packets + 5),
"Rx statistics error in iface %s" % virtual_interface)
self.dut.kill_all()
--
2.7.4
More information about the dts
mailing list