From c89244842bf0b050b0e02476f31adae5bac711da Mon Sep 17 00:00:00 2001 From: Daan De Meyer Date: Tue, 30 Apr 2024 14:29:14 +0200 Subject: 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. --- test/integration-test-wrapper.py | 1 + 1 file changed, 1 insertion(+) (limited to 'test') 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 []) -- cgit v1.2.3