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 EDEF92C01 for ; Mon, 2 Apr 2018 05:46:49 +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 69B801596; Sun, 1 Apr 2018 20:46:49 -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 A5A133F487; Sun, 1 Apr 2018 20:46:48 -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:16 +0800 Message-Id: <1522640786-26646-7-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 07/17] tests/queue_start_stop: 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:46:50 -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_queue_start_stop.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/TestSuite_queue_start_stop.py b/tests/TestSuite_queue_start_stop.py index cc031f5..bf69666 100644 --- a/tests/TestSuite_queue_start_stop.py +++ b/tests/TestSuite_queue_start_stop.py @@ -44,7 +44,7 @@ import os from test_case import TestCase from pmd_output import PmdOutput from settings import FOLDERS -from packet import Packet, sniff_packets, load_sniff_packets, strip_pktload +from packet import Packet, strip_pktload # # @@ -99,10 +99,10 @@ class TestQueueStartStop(TestCase): dmac = self.dut.get_mac_address(txPort) pkt = Packet(pkt_type="UDP", pkt_len=pktSize) - inst = sniff_packets(rxitf) + inst = self.tester.tcpdump_sniff_packets(rxitf) pkt.config_layer('ether', {'dst': dmac}) pkt.send_pkt(tx_port=txitf) - sniff_pkts = load_sniff_packets(inst) + sniff_pkts = self.tester.load_tcpdump_sniff_packets(inst) if received: res = strip_pktload(sniff_pkts[0], layer="L4") -- 2.7.4