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 DDD621B173 for ; Fri, 23 Mar 2018 09:05:02 +0100 (CET) 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 59FEE1435; Fri, 23 Mar 2018 01:05:02 -0700 (PDT) Received: from phil-VirtualBox.shanghai.arm.com (unknown [10.169.108.169]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id 7232A3F25D; Fri, 23 Mar 2018 01:05:01 -0700 (PDT) From: Phil Yang To: dts@dpdk.org Cc: nd@arm.com, phil.yang@arm.com, yong.liu@intel.com, herbert.guan@arm.com Date: Fri, 23 Mar 2018 16:04:05 +0800 Message-Id: <1521792246-4950-16-git-send-email-phil.yang@arm.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1521792246-4950-1-git-send-email-phil.yang@arm.com> References: <1521792246-4950-1-git-send-email-phil.yang@arm.com> Subject: [dts] [PATCH 16/17] tests/vlan: Replaced 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: Fri, 23 Mar 2018 08:05:03 -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_vlan.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/tests/TestSuite_vlan.py b/tests/TestSuite_vlan.py index 0f1833b..2b70ffa 100644 --- a/tests/TestSuite_vlan.py +++ b/tests/TestSuite_vlan.py @@ -43,7 +43,6 @@ import time from test_case import TestCase from pmd_output import PmdOutput -from packet import Packet, sniff_packets, load_sniff_packets class TestVlan(TestCase): @@ -88,7 +87,7 @@ class TestVlan(TestCase): netobj.add_vlan(vlan_id = self.vlan) def get_tcpdump_package(self): - pkts = load_sniff_packets(self.inst) + pkts = self.tester.load_tcpdump_sniff_packets(self.inst) vlans = [] for packet in pkts: vlan = packet.strip_element_vlan("vlan") @@ -110,7 +109,7 @@ class TestVlan(TestCase): # the package dect mac must is dut tx port id when the port promisc is off self.dmac = self.dut.get_mac_address(dutRxPortId) - self.inst = sniff_packets(self.rxItf) + self.inst = self.tester.tcpdump_sniff_packets(self.rxItf) # FIXME send a burst with only num packet if vid == -1: pkt = Packet(pkt_type='UDP') -- 2.7.4