summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorDaan De Meyer <daan.j.demeyer@gmail.com>2024-04-30 19:06:00 +0200
committerDaan De Meyer <daan.j.demeyer@gmail.com>2024-04-30 22:10:05 +0200
commit9a69900a4b0a876b85ea3c962daeed1391256f41 (patch)
treec281b959a2d99872683b8856f947602c5b3c47d5 /test
parenttest: Drop /usr overlay workaround (diff)
downloadsystemd-9a69900a4b0a876b85ea3c962daeed1391256f41.tar.xz
systemd-9a69900a4b0a876b85ea3c962daeed1391256f41.zip
test: Make journal storage configurable per test and make persistent for TEST-09-JOURNAL
Also fix a bug in the logic since it's 'volatile' and not 'runtime'.
Diffstat (limited to 'test')
-rw-r--r--test/TEST-09-REBOOT/meson.build5
-rwxr-xr-xtest/integration-test-wrapper.py3
-rw-r--r--test/meson.build2
3 files changed, 9 insertions, 1 deletions
diff --git a/test/TEST-09-REBOOT/meson.build b/test/TEST-09-REBOOT/meson.build
new file mode 100644
index 0000000000..30a5a10707
--- /dev/null
+++ b/test/TEST-09-REBOOT/meson.build
@@ -0,0 +1,5 @@
+# SPDX-License-Identifier: LGPL-2.1-or-later
+
+test_params = test_params + {
+ 'storage': 'persistent',
+}
diff --git a/test/integration-test-wrapper.py b/test/integration-test-wrapper.py
index 0d3e4abde7..1954d0fec0 100755
--- a/test/integration-test-wrapper.py
+++ b/test/integration-test-wrapper.py
@@ -47,6 +47,7 @@ def main():
parser.add_argument('--meson-build-dir', required=True, type=Path)
parser.add_argument('--test-name', required=True)
parser.add_argument('--test-number', required=True)
+ parser.add_argument('--storage', required=True)
parser.add_argument('mkosi_args', nargs="*")
args = parser.parse_args()
@@ -119,7 +120,7 @@ def main():
else []
),
]),
- '--credential', f"journal.storage={'persistent' if sys.stderr.isatty() else 'runtime'}" ,
+ '--credential', f"journal.storage={'persistent' if sys.stderr.isatty() else args.storage}" ,
*args.mkosi_args,
'qemu',
]
diff --git a/test/meson.build b/test/meson.build
index 235c68ae29..289f564e1e 100644
--- a/test/meson.build
+++ b/test/meson.build
@@ -375,6 +375,7 @@ foreach test_number, dirname : integration_tests
test_params = {
'mkosi_args' : [],
'timeout' : 600,
+ 'storage': 'volatile',
}
# TODO: This fs.exists call isn't included in rebuild logic
@@ -389,6 +390,7 @@ foreach test_number, dirname : integration_tests
'--meson-build-dir', meson.project_build_root(),
'--test-name', dirname,
'--test-number', test_number,
+ '--storage', test_params['storage'],
'--',
] + test_params['mkosi_args']