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 CE96F4CC3 for ; Tue, 4 Sep 2018 10:29:55 +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 4CBEC1596; Tue, 4 Sep 2018 01:29:55 -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 8AE993F614; Tue, 4 Sep 2018 01:29:54 -0700 (PDT) From: Phil Yang Date: Tue, 4 Sep 2018 16:26:21 +0800 Message-Id: <1536049595-22271-8-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 08/22] tests/quota_watermark: 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: Tue, 04 Sep 2018 08:29:56 -0000 From: Phil Yang Make packet sniff run on the Tester. Signed-off-by: Phil Yang Suggested-by: Marvin Liu --- tests/TestSuite_quota_watermark.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/tests/TestSuite_quota_watermark.py b/tests/TestSuite_quota_watermark.py index ecacf38..845b27f 100644 --- a/tests/TestSuite_quota_watermark.py +++ b/tests/TestSuite_quota_watermark.py @@ -39,7 +39,6 @@ import time import utils from test_case import TestCase from etgen import IxiaPacketGenerator -from packet import Packet, sniff_packets, load_sniff_packets test_config = { 'frames_to_sent': 15 * 10 ** 6, @@ -311,9 +310,9 @@ class TestQuotaWatermark(TestCase, IxiaPacketGenerator): rx_intf = self.tester.get_interface(rev_port) tx_intf = self.tester.get_interface(send_port) # send and sniff packet - rx_inst = sniff_packets(rx_intf, timeout=5) + rx_inst = self.tester.tcpdump_sniff_packets(rx_intf, timeout=5) self.send_pcap_pkt_by_scapy(self.tester, tgen_input[0][2], tx_intf) - pkts = load_sniff_packets(rx_inst) + pkts = self.tester.load_tcpdump_sniff_packets(rx_inst) self.verify(len(pkts) == pkt_cnt, "Packet not forwarded as expected") return -- 2.7.4