test suite reviews and discussions
 help / color / mirror / Atom feed
* [dts] [PATCT V1]tests: change the pass criteria for kni statistic
@ 2019-02-13 12:55 Lei
  0 siblings, 0 replies; only message in thread
From: Lei @ 2019-02-13 12:55 UTC (permalink / raw)
  To: dts; +Cc: Lei Yao

From: Lei Yao <lei.a.yao@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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2019-02-13  5:31 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-02-13 12:55 [dts] [PATCT V1]tests: change the pass criteria for kni statistic Lei

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).