From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from foss.arm.com (usa-sjc-mx-foss1.foss.arm.com [217.140.101.70]) by dpdk.org (Postfix) with ESMTP id 6DF005F72 for ; Mon, 2 Apr 2018 05:47:06 +0200 (CEST) Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.72.51.249]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id DD8C715B2; Sun, 1 Apr 2018 20:47:05 -0700 (PDT) Received: from phil-VirtualBox.shanghai.arm.com (unknown [10.169.109.153]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id 243A53F487; Sun, 1 Apr 2018 20:47:05 -0700 (PDT) From: Phil Yang To: dts@dpdk.org Cc: nd@arm.com, yong.liu@intel.com, phil.yang@arm.com Date: Mon, 2 Apr 2018 11:46:26 +0800 Message-Id: <1522640786-26646-17-git-send-email-phil.yang@arm.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1522640786-26646-1-git-send-email-phil.yang@arm.com> References: <1522406469-9251-1-git-send-email-phil.yang@arm.com> <1522640786-26646-1-git-send-email-phil.yang@arm.com> Subject: [dts] [PATCH v3 17/17] tests/ipgre: Replace sniff_packets to tester.tcpdump_sniff_packets 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: Mon, 02 Apr 2018 03:47:06 -0000 Make sniff_packet running on the tester. Create a ssh connection to the tester then call tcpdump. Signed-off-by: Phil Yang --- tests/TestSuite_ipgre.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/TestSuite_ipgre.py b/tests/TestSuite_ipgre.py index 2dccb9c..e400161 100644 --- a/tests/TestSuite_ipgre.py +++ b/tests/TestSuite_ipgre.py @@ -44,7 +44,7 @@ import re import time import os -from packet import Packet, sniff_packets, load_sniff_packets, NVGRE, IPPROTO_NVGRE +from packet import Packet, NVGRE, IPPROTO_NVGRE from scapy.utils import wrpcap, rdpcap from scapy.packet import split_layers,bind_layers @@ -98,11 +98,11 @@ class TestIpgre(TestCase): if layer_configs: for layer in layer_configs.keys(): pkt.config_layer(layer, layer_configs[layer]) - inst = sniff_packets(self.tester_iface, count=1, timeout=8) + inst = self.tester.tcpdump_sniff_packets(self.tester_iface, count=1, timeout=8) pkt.send_pkt(tx_port=self.tester_iface) out = self.dut.get_session_output(timeout=2) time.sleep(1) - load_sniff_packets(inst) + self.tester.load_tcpdump_sniff_packets(inst) if self.printFlag: # debug output print out for pkt_layer_name in pkt_names: -- 2.7.4