From: Daan De Meyer Date: Tue, 14 Jan 2025 08:52:40 +0000 (+0100) Subject: test: Only move journal file if we didn't just unlink it X-Git-Tag: v258-rc1~1630 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=1d77ac19cfa1c9b194d7e9805430ab6fd38ba97e;p=thirdparty%2Fsystemd.git test: Only move journal file if we didn't just unlink it --- diff --git a/test/integration-test-wrapper.py b/test/integration-test-wrapper.py index 5321faef578..a7bf5ea6060 100755 --- a/test/integration-test-wrapper.py +++ b/test/integration-test-wrapper.py @@ -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)