diff options
author | Daan De Meyer <daan.j.demeyer@gmail.com> | 2024-04-30 14:29:14 +0200 |
---|---|---|
committer | Daan De Meyer <daan.j.demeyer@gmail.com> | 2024-04-30 15:20:55 +0200 |
commit | c89244842bf0b050b0e02476f31adae5bac711da (patch) | |
tree | d44d1b58b024134e93aff30ea2743674dafa2308 /test | |
parent | journal: Add journal.storage credential (diff) | |
download | systemd-c89244842bf0b050b0e02476f31adae5bac711da.tar.xz systemd-c89244842bf0b050b0e02476f31adae5bac711da.zip |
test: Don't persist journal in mkosi image if we're not debugging tests
If we're not debugging tests, there's no point in persisting the journal,
so let's use the volatile journal storage mode in that case to avoid doing
unnecessary work.
We don't disable journal storage alltogether since various tests check
that stuff is written to the journal.
Diffstat (limited to 'test')
-rwxr-xr-x | test/integration-test-wrapper.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/test/integration-test-wrapper.py b/test/integration-test-wrapper.py index 2d2fba25eb..1e003342df 100755 --- a/test/integration-test-wrapper.py +++ b/test/integration-test-wrapper.py @@ -110,6 +110,7 @@ def main(): f"SYSTEMD_UNIT_PATH=/usr/lib/systemd/tests/testdata/testsuite-{args.test_number}.units:/usr/lib/systemd/tests/testdata/units:", f"systemd.unit={test_unit}", ]), + '--credential', f"journal.storage={'persistent' if sys.stderr.isatty() else 'runtime'}" , *args.mkosi_args, 'qemu', *(['-no-reboot'] if not sys.stderr.isatty() else []) |