From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id F179DA3201 for ; Mon, 21 Oct 2019 04:35:27 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id D9B05F3E; Mon, 21 Oct 2019 04:35:27 +0200 (CEST) Received: from mga03.intel.com (mga03.intel.com [134.134.136.65]) by dpdk.org (Postfix) with ESMTP id B965A9E4 for ; Mon, 21 Oct 2019 04:35:26 +0200 (CEST) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by orsmga103.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 20 Oct 2019 19:35:25 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.67,321,1566889200"; d="scan'208";a="209345062" Received: from unknown (HELO dpdk-wenjielx-dtspatch135.sh.intel.com) ([10.240.176.135]) by fmsmga001.fm.intel.com with ESMTP; 20 Oct 2019 19:35:25 -0700 From: "zhu,shuai" To: dts@dpdk.org Cc: "zhu,shuai" Date: Mon, 21 Oct 2019 10:40:37 +0800 Message-Id: <1571625637-84560-1-git-send-email-shuaix.zhu@intel.com> X-Mailer: git-send-email 1.9.3 Subject: [dts] [PATCH V2] tests/tx_preparation:Modify the verification parameters. 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: , Errors-To: dts-bounces@dpdk.org Sender: "dts" Signed-off-by: zhu,shuai --- tests/TestSuite_tx_preparation.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/tests/TestSuite_tx_preparation.py b/tests/TestSuite_tx_preparation.py index 6d12724..cea3777 100644 --- a/tests/TestSuite_tx_preparation.py +++ b/tests/TestSuite_tx_preparation.py @@ -57,6 +57,7 @@ import random Normal_mtu = 1500 Max_mtu = 9000 TSO_value = 1460 +count = 4 class TestTX_preparation(TestCase): @@ -139,7 +140,7 @@ class TestTX_preparation(TestCase): for packet_type in pkts.keys(): self.start_tcpdump(self.tester_intf) self.tester.scapy_append( - 'sendp([%s], iface="%s", count=4)' % (pkts[packet_type], self.tester_intf)) + 'sendp([%s], iface="%s", count=%d)' % (pkts[packet_type], self.tester_intf, count)) self.tester.scapy_execute() out = self.get_tcpdump_package() if packet_type == 'IPv6/cksum UDP': @@ -156,11 +157,11 @@ class TestTX_preparation(TestCase): segnum = LrgLength / TSO_value LastLength = LrgLength % TSO_value num = out.count('length %s' %TSO_value) - self.verify("length %s" %TSO_value in out and num == segnum, + self.verify("length %s" %TSO_value in out and num == segnum * count, "Failed to verify TSO correctness for large packets!!!") if LastLength != 0 : num = out.count('length %s' %LastLength) - self.verify("length %s" %LastLength in out and num == 1 , + self.verify("length %s" %LastLength in out and num == count, "Failed to verify TSO correctness for large packets!!!") -- 2.17.2