mirror of
https://github.com/systemd/systemd.git
synced 2025-03-06 00:58:29 +03:00
test: Only move journal file if we didn't just unlink it
(cherry picked from commit 1d77ac19cfa1c9b194d7e9805430ab6fd38ba97e)
This commit is contained in:
parent
d6ebbd871e
commit
3dbbf85013
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user