From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) by dpdk.org (Postfix) with ESMTP id 5B56D2B9E for ; Tue, 5 Mar 2019 07:36:50 +0100 (CET) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga002.jf.intel.com ([10.7.209.21]) by orsmga102.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 04 Mar 2019 22:36:49 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.58,443,1544515200"; d="scan'208";a="139187468" Received: from unknown (HELO yaolei2.icx.intel.com) ([10.67.118.30]) by orsmga002.jf.intel.com with ESMTP; 04 Mar 2019 22:36:48 -0800 From: Lei To: dts@dpdk.org Cc: Lei Yao Date: Tue, 5 Mar 2019 14:01:15 +0000 Message-Id: <1551794475-87562-1-git-send-email-lei.a.yao@intel.com> X-Mailer: git-send-email 2.7.4 Subject: [dts] [PATCH V2]tests: change the pass criteria for kni statistic X-BeenThere: dts@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: test suite reviews and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 05 Mar 2019 06:36:50 -0000 From: Lei Yao On some platform, because the LLDP packets, the packet statisic number will not be so accurate Signed-off-by: Lei Yao --- tests/TestSuite_kni.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/tests/TestSuite_kni.py b/tests/TestSuite_kni.py index 2581802..641d8b0 100644 --- a/tests/TestSuite_kni.py +++ b/tests/TestSuite_kni.py @@ -767,22 +767,22 @@ class TestKni(TestCase): self.tester.scapy_append('srcmac = "%s"' % tx_mac) self.tester.scapy_append( - 'sendp([Ether(src = srcmac,dst=dstmac)/IP()/UDP()/("X"*28)],iface="%s")' % tx_interface) + 'sendp([Ether(src = srcmac,dst=dstmac)/IP()/UDP()/("X"*28)],iface="%s",count=200)' % tx_interface) self.tester.scapy_append( - 'sendp([Ether(src = srcmac,dst=dstmac)/IP()/TCP()/("X"*28)],iface="%s")' % tx_interface) + 'sendp([Ether(src = srcmac,dst=dstmac)/IP()/TCP()/("X"*28)],iface="%s",count=200)' % tx_interface) self.tester.scapy_append( - 'sendp([Ether(src = srcmac,dst=dstmac)/IP()/ICMP()/("X"*28)],iface="%s")' % tx_interface) + 'sendp([Ether(src = srcmac,dst=dstmac)/IP()/ICMP()/("X"*28)],iface="%s",count=200)' % tx_interface) self.tester.scapy_append( - 'sendp([Ether(src = srcmac,dst=dstmac)/IP()/("X"*38)],iface="%s")' % tx_interface) + 'sendp([Ether(src = srcmac,dst=dstmac)/IP()/("X"*38)],iface="%s",count=200)' % tx_interface) self.tester.scapy_append( - 'sendp([Ether(src = srcmac,dst=dstmac)/("X"*46)],iface="%s")' % tx_interface) + 'sendp([Ether(src = srcmac,dst=dstmac)/("X"*46)],iface="%s",count=200)' % tx_interface) self.tester.scapy_execute() out = self.dut.send_expect("ifconfig %s" % virtual_interface, "# ") 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 + 1000), "Rx statistics error in iface %s" % virtual_interface) self.dut.kill_all() -- 2.7.4