From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from foss.arm.com (foss.arm.com [217.140.101.70]) by dpdk.org (Postfix) with ESMTP id C7404326D for ; Tue, 4 Sep 2018 10:29:53 +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 44F851596; Tue, 4 Sep 2018 01:29:53 -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 7D8B53F614; Tue, 4 Sep 2018 01:29:52 -0700 (PDT) From: Phil Yang Date: Tue, 4 Sep 2018 16:26:19 +0800 Message-Id: <1536049595-22271-6-git-send-email-phil.yang@arm.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1536049595-22271-1-git-send-email-phil.yang@arm.com> References: <1523526771-7437-1-git-send-email-phil.yang@arm.com> <1536049595-22271-1-git-send-email-phil.yang@arm.com> Subject: [dts] [PATCH v5 06/22] tests/netmap_compat: replaced sniff_packet to tester.tcpdump_sniff_packet 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, 04 Sep 2018 08:29:54 -0000 From: Phil Yang Make packet sniff run on the Tester. Signed-off-by: Phil Yang Suggested-by: Marvin Liu --- tests/TestSuite_netmap_compat.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/tests/TestSuite_netmap_compat.py b/tests/TestSuite_netmap_compat.py index 5225a27..84136c7 100644 --- a/tests/TestSuite_netmap_compat.py +++ b/tests/TestSuite_netmap_compat.py @@ -43,7 +43,6 @@ from test_case import TestCase from plotting import Plotting from settings import HEADER_SIZE from etgen import IxiaPacketGenerator -from packet import Packet, sniff_packets, load_sniff_packets class TestNetmapCompat(TestCase): @@ -80,7 +79,7 @@ class TestNetmapCompat(TestCase): self.rxItf = self.tester.get_interface(self.tester.get_local_port(self.dut_ports[0])) - self.inst = sniff_packets(self.rxItf) + self.inst = self.tester.tcpdump_sniff_packets(self.rxItf) self.scapy_send_packet() @@ -98,7 +97,7 @@ class TestNetmapCompat(TestCase): self.dut.send_expect(cmd,"Port %s now in Netmap mode" % self.dut_ports[0], 60) self.rxItf = self.tester.get_interface(self.tester.get_local_port(self.dut_ports[1])) - self.inst = sniff_packets(self.rxItf) + self.inst = self.tester.tcpdump_sniff_packets(self.rxItf) self.scapy_send_packet() @@ -117,7 +116,7 @@ class TestNetmapCompat(TestCase): def get_tcpdump_package(self): - pkts = load_sniff_packets(self.inst) + pkts = self.tester.load_tcpdump_sniff_packets(self.inst) dsts = [] for packet in pkts: dst = packet.strip_element_layer2("dst") -- 2.7.4