Skip to content

Commit

Permalink
copy pcap files instead of moving (#409)
Browse files Browse the repository at this point in the history
The move operation can fail in certain conditions. Copy is more robust.
  • Loading branch information
larseggert authored Nov 2, 2024
1 parent 8063219 commit 035ecdb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion testcases.py
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ def _inject_keylog_if_possible(self, trace: str):
logging.debug("%s", r.stdout.decode("utf-8"))
if r.returncode != 0:
return
shutil.move(tmp.name, trace)
shutil.copy(tmp.name, trace)

def _client_trace(self):
if self._cached_client_trace is None:
Expand Down

0 comments on commit 035ecdb

Please sign in to comment.