diff --git a/tests/emulators.py b/tests/emulators.py index 4f69d1eaff..bd88e88aef 100644 --- a/tests/emulators.py +++ b/tests/emulators.py @@ -139,6 +139,7 @@ class EmulatorWrapper: if logs_dir is not None: src = Path(self.profile_dir.name) / "trezor.log" dst = Path(logs_dir) / f"trezor-{self.worker_id}.log" - shutil.move(src, dst) + with open(src, "rb") as src, open(dst, "ab") as dst: + shutil.copyfileobj(src, dst) self.profile_dir.cleanup()