[dts] [PATCH v2 03/17] tests/etag: Replace sniff_packet to tester.tcpdump_sniff_packet
Phil Yang
phil.yang at arm.com
Fri Mar 30 12:40:55 CEST 2018
Make sniff_packet running on the tester. Create a ssh connection to
the tester then call tcpdump.
Signed-off-by: Phil Yang <phil.yang at arm.com>
---
tests/TestSuite_etag.py | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/tests/TestSuite_etag.py b/tests/TestSuite_etag.py
index 642fb2b..a325a9e 100644
--- a/tests/TestSuite_etag.py
+++ b/tests/TestSuite_etag.py
@@ -46,7 +46,6 @@ from exception import VerifyFailure
from scapy.utils import rdpcap
-from packet import Packet, sniff_packets, load_sniff_packets
VM_CORES_MASK = 'all'
@@ -325,11 +324,12 @@ class TestEtag(TestCase):
pkt_types = {'IP_RAW': {'layer_configs': config_layers}}
intf = self.src_intf
- inst = sniff_packets(intf)
+ inst = self.tester.tcpdump_sniff_packets(intf)
self.check_packet_transmission(pkt_types)
time.sleep(1)
- pkts = load_sniff_packets(inst)
+ self.tester.session.copy_file_from("/tmp/sniff_%s.pcap" % intf, "/tmp/")
+ pkts = self.tester.load_tcpdump_sniff_packets(inst)
self.host_testpmd.execute_cmd('E-tag set insertion off port-tag-id 1000 port 0 vf 0')
# load sniff pcap file, check received packet's content
--
2.7.4
More information about the dts
mailing list