[prev in list] [next in list] [prev in thread] [next in thread]
List: dpdk-dts
Subject: [dts] [PATCH v2 07/17] tests/queue_start_stop: Replace sniff_packets to tester.tcpdump_sniff_packets
From: Phil Yang <phil.yang () arm ! com>
Date: 2018-03-30 10:40:59
Message-ID: 1522406469-9251-7-git-send-email-phil.yang () arm ! com
[Download RAW message or body]
Make sniff_packet running on the tester. Create a ssh connection to the
tester then call tcpdump.
Signed-off-by: Phil Yang <phil.yang@arm.com>
---
tests/TestSuite_queue_start_stop.py | 7 ++++---
1 file changed, 4 insertions(+), 3 deletions(-)
diff --git a/tests/TestSuite_queue_start_stop.py b/tests/TestSuite_queue_start_stop.py
index cc031f5..0f363c8 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,11 @@ 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)
+ self.tester.session.copy_file_from("/tmp/sniff_%s.pcap" % rxitf, "/tmp/")
+ sniff_pkts = self.tester.load_tcpdump_sniff_packets(inst)
if received:
res = strip_pktload(sniff_pkts[0], layer="L4")
--
2.7.4
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic