summaryrefslogtreecommitdiffstats
path: root/test/integration-test-wrapper.py
diff options
context:
space:
mode:
authorDaan De Meyer <daan.j.demeyer@gmail.com>2025-01-14 09:52:40 +0100
committerDaan De Meyer <daan.j.demeyer@gmail.com>2025-01-14 10:21:45 +0100
commit1d77ac19cfa1c9b194d7e9805430ab6fd38ba97e (patch)
tree7a606e2f8affd2531b0df8639bc23eb966f4493a /test/integration-test-wrapper.py
parentupdate-done: remove spurious trailing whitespace from MESSAGE. (diff)
downloadsystemd-1d77ac19cfa1c9b194d7e9805430ab6fd38ba97e.tar.xz
systemd-1d77ac19cfa1c9b194d7e9805430ab6fd38ba97e.zip
test: Only move journal file if we didn't just unlink it
Diffstat (limited to 'test/integration-test-wrapper.py')
-rwxr-xr-xtest/integration-test-wrapper.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/test/integration-test-wrapper.py b/test/integration-test-wrapper.py
index 5321faef57..a7bf5ea606 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)