From: Paul Vinciguerra Date: Wed, 26 Jun 2019 00:51:31 +0000 (-0400) Subject: tests: rename stream name in tests X-Git-Tag: v20.01-rc0~306 X-Git-Url: https://gerrit.fd.io/r/gitweb?a=commitdiff_plain;h=refs%2Fchanges%2F39%2F20339%2F4;p=vpp.git 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 --- 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)