]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
test: pull in multi-user.target explicitly
authorDaan De Meyer <daan.j.demeyer@gmail.com>
Fri, 28 Jun 2024 11:34:37 +0000 (13:34 +0200)
committerDaan De Meyer <daan.j.demeyer@gmail.com>
Fri, 28 Jun 2024 11:34:37 +0000 (13:34 +0200)
Let's make sure we pull in multi-user.target so that we get a console
when a test fails and we're running meson test with --interactive.

test/integration-test-wrapper.py

index 21ec00680f26dce58f55bd0b746afe25d053e70c..743a14c3d8a63a336f1bd69e79436f1767376b95 100755 (executable)
@@ -103,6 +103,12 @@ def main():
         journal_file = (args.meson_build_dir / (f"test/journal/{name}.journal")).absolute()
         journal_file.unlink(missing_ok=True)
     else:
+        dropin += textwrap.dedent(
+            """
+            [Unit]
+            Wants=multi-user.target
+            """
+        )
         journal_file = None
 
     cmd = [