From 44b0b07bc18555ecdf11b2b4c184bb88a9fa118f Mon Sep 17 00:00:00 2001 From: Paul Vinciguerra Date: Tue, 25 Jun 2019 20:51:31 -0400 Subject: tests: rename stream name in tests PacketGenerator streams were named based on their sw_if_index but without knowing that, it looked like it was paired with the interface instance value. Reencode the name to encode the data in a clearer way. 20:48:12,859 CLI: packet-generator new pcap /tmp/vpp-unittest-TestClassifierPBR-6DVQW2/pg0_in.pcap source pg0 name pcap0-sw_if_index-1 Change-Id: I5b82193943fee0cf060900d73aaaaecca1247105 Type: style Signed-off-by: Paul Vinciguerra --- test/vpp_pg_interface.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'test/vpp_pg_interface.py') diff --git a/test/vpp_pg_interface.py b/test/vpp_pg_interface.py index 380c1fa2595..bd4ddaff58a 100755 --- a/test/vpp_pg_interface.py +++ b/test/vpp_pg_interface.py @@ -103,7 +103,8 @@ class VppPGInterface(VppInterface): self._in_path = self.test.tempdir + "/" + self._in_file self._capture_cli = "packet-generator capture pg%u pcap %s" % ( self.pg_index, self.out_path) - self._cap_name = "pcap%u" % self.sw_if_index + self._cap_name = "pcap%u-sw_if_index-%s" % ( + self.pg_index, self.sw_if_index) self._input_cli = \ "packet-generator new pcap %s source pg%u name %s" % ( self.in_path, self.pg_index, self.cap_name) -- cgit 1.2.3-korg