From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 7B46B423A1; Tue, 10 Jan 2023 08:49:53 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 739D340691; Tue, 10 Jan 2023 08:49:53 +0100 (CET) Received: from mga17.intel.com (mga17.intel.com [192.55.52.151]) by mails.dpdk.org (Postfix) with ESMTP id 3638640689 for ; Tue, 10 Jan 2023 08:49:51 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1673336991; x=1704872991; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=8aGeblfdNwQaAxMbQzgXC0/vSE6m2dGwI4e6l5q4vsw=; b=U7Fh3aZ6faYjNupU83W+7RJvr2TifiOIbv5ZmY70HeD1QwV1cvfM4ACd zgAIudh1xolnHLGKQzJc5u8e417+iTo3q0Dl7uSzkvbQuiZsCkdHTV53u JkvObotQpQjo9gn0OnM/as13+dGYQ9F4AEIujFfjsijIz8IA7HC8eZKUg eOH+jZo/OdbKWSiXWFdiCyOq+OneZU2uoGOC/VQbSnjvBojyG3ZREMy25 o+KkVCFeswwKLKHrwLuyzdWXAhXIM54EbstbBwOIE3fOjLkR5nzcYkg5K pvO8evyvr104klbNB23a3tbQ1Bd/0hcb/RtQoAX4X5O+sH1R60J4byfFQ g==; X-IronPort-AV: E=McAfee;i="6500,9779,10585"; a="303448616" X-IronPort-AV: E=Sophos;i="5.96,314,1665471600"; d="scan'208";a="303448616" Received: from fmsmga006.fm.intel.com ([10.253.24.20]) by fmsmga107.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 09 Jan 2023 23:49:50 -0800 X-IronPort-AV: E=McAfee;i="6500,9779,10585"; a="902286830" X-IronPort-AV: E=Sophos;i="5.96,314,1665471600"; d="scan'208";a="902286830" Received: from unknown (HELO localhost.localdomain) ([10.239.252.248]) by fmsmga006-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 09 Jan 2023 23:49:49 -0800 From: Weiyuan Li To: dts@dpdk.org Cc: Weiyuan li Subject: [dts][PATCH V1] tests/vf_offload: fix syntax errors Date: Tue, 10 Jan 2023 15:49:38 +0800 Message-Id: <20230110074938.20461-1-weiyuanx.li@intel.com> X-Mailer: git-send-email 2.27.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: dts@dpdk.org X-Mailman-Version: 2.1.29 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 From: Weiyuan li Scapy send package count can't have quotation marks. Otherwise, send the packet fails. Signed-off-by: Weiyuan li --- tests/TestSuite_vf_offload.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/tests/TestSuite_vf_offload.py b/tests/TestSuite_vf_offload.py index a212133..329501f 100644 --- a/tests/TestSuite_vf_offload.py +++ b/tests/TestSuite_vf_offload.py @@ -887,7 +887,7 @@ class TestVfOffload(TestCase): ) mac = self.vm0_testpmd.get_port_mac(0) - self.vm0_testpmd.execute_cmd("set verbose 1", "testpmd> ", 120) + self.vm0_testpmd.execute_cmd("set verbose 0", "testpmd> ", 120) self.vm0_testpmd.execute_cmd("set fwd csum", "testpmd>", 120) self.vm0_testpmd.execute_cmd("set promisc 0 on", "testpmd> ", 120) self.vm0_testpmd.execute_cmd("set promisc 1 on", "testpmd> ", 120) @@ -934,7 +934,7 @@ class TestVfOffload(TestCase): ( 'sendp([Ether(dst="%s",src="52:00:00:00:00:00")/' + pkts_outer[key_outer] - + '/IP(src="192.168.1.1",dst="192.168.1.2")/TCP(sport=1021,dport=1021)/Raw(RandString(size=%s))], iface="%s", count = %s)' + + '/IP(src="192.168.1.1",dst="192.168.1.2")/TCP(sport=1021,dport=1021)/Raw(RandString(size=%s))], iface="%s", count=%s)' ) % (mac, loading_size, tx_interface, packet_count) ) @@ -952,7 +952,7 @@ class TestVfOffload(TestCase): rx_stats == tx_stats and all( [ - payload_size_list == loading_size + payload_size_list[j] == loading_size for j in range(packet_count) ] ), @@ -994,11 +994,12 @@ class TestVfOffload(TestCase): self.tester.scapy_append( "from scapy.contrib.gtp import GTP_U_Header" ) + self.logger.info([mac, loading_size, tx_interface, packet_count]) self.tester.scapy_append( ( 'sendp([Ether(dst="%s", src="52:00:00:00:00:00")/' + pkts_outer[key_outer] - + '/IPv6(src="FE80:0:0:0:200:1FF:FE00:200", dst="3555:5555:6666:6666:7777:7777:8888:8888")/TCP(sport=1021,dport=1021)/("X"*%s)], iface="%s")' + + '/IPv6(src="FE80:0:0:0:200:1FF:FE00:200", dst="3555:5555:6666:6666:7777:7777:8888:8888")/TCP(sport=1021,dport=1021)/("X"*%s)], iface="%s", count=%s)' ) % (mac, loading_size, tx_interface, packet_count) ) -- 1.8.3.1