test: Only move journal file if we didn't just unlink it

This commit is contained in:
Daan De Meyer
2025-01-14 10:21:45 +01:00
parent 9b10bc107f
commit 1d77ac19cf
+1 -2
View File
@@ -556,8 +556,7 @@ def main() -> None:
and not sanitizer
):
journal_file.unlink(missing_ok=True)
if os.getenv('TEST_JOURNAL_USE_TMP', '0') == '1':
elif os.getenv('TEST_JOURNAL_USE_TMP', '0') == '1':
dst = args.meson_build_dir / f'test/journal/{name}.journal'
dst.parent.mkdir(parents=True, exist_ok=True)
shutil.move(journal_file, dst)