tests: rename stream name in tests 39/20339/4
authorPaul Vinciguerra <pvinci@vinciconsulting.com>
Wed, 26 Jun 2019 00:51:31 +0000 (20:51 -0400)
committerAndrew Yourtchenko <ayourtch@gmail.com>
Thu, 27 Jun 2019 15:45:15 +0000 (15:45 +0000)
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 <pvinci@vinciconsulting.com>
test/vpp_pg_interface.py

index 380c1fa..bd4ddaf 100755 (executable)
@@ -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)