diff options
author | Klement Sekera <ksekera@cisco.com> | 2021-04-01 18:19:29 +0200 |
---|---|---|
committer | Klement Sekera <ksekera@cisco.com> | 2021-04-09 21:12:46 +0000 |
commit | 3ff6ffce032544b4ffc3e42b5e069243681ae751 (patch) | |
tree | 013a5e436e4d167395bb759f0119cdddfc1caf7e /test/vpp_pg_interface.py | |
parent | e4db945e1cd960f94f3e3f3d1049fd98cfadbeb1 (diff) |
tests: improve naming
Change capture to pcap to remove confusion in framework.py
Type: improvement
Signed-off-by: Klement Sekera <ksekera@cisco.com>
Change-Id: Idf8bd61f174b8b2df3bbd13908e54d597da4a83b
Diffstat (limited to 'test/vpp_pg_interface.py')
-rwxr-xr-x | test/vpp_pg_interface.py | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/test/vpp_pg_interface.py b/test/vpp_pg_interface.py index c8debff0301..3bcde9319a8 100755 --- a/test/vpp_pg_interface.py +++ b/test/vpp_pg_interface.py @@ -132,8 +132,7 @@ class VppPGInterface(VppInterface): self._cap_name = "pcap%u-sw_if_index-%s" % ( self.pg_index, self.sw_if_index) - def rename_previous_capture_file(self, path, counter): - # if a file from a previous capture exists, rename it. + def rename_old_pcap_file(self, path, counter): filename = os.path.basename(path) try: if os.path.isfile(path): @@ -157,8 +156,7 @@ class VppPGInterface(VppInterface): """ # disable the capture to flush the capture self.disable_capture() - self.rename_previous_capture_file(self.out_path, - self.out_history_counter) + self.rename_old_pcap_file(self.out_path, self.out_history_counter) # FIXME this should be an API, but no such exists atm self.test.vapi.cli(self.capture_cli) self._pcap_reader = None @@ -186,7 +184,7 @@ class VppPGInterface(VppInterface): """ wrpcap(self.get_in_path(worker), pkts) - self.test.register_capture(self, worker) + self.test.register_pcap(self, worker) # FIXME this should be an API, but no such exists atm self.test.vapi.cli(self.get_input_cli(nb_replays, worker)) |