]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
mkosi: Use systemd.crash_action=poweroff in integration tests
authorDaan De Meyer <daan.j.demeyer@gmail.com>
Mon, 29 Apr 2024 08:47:25 +0000 (10:47 +0200)
committerDaan De Meyer <daan.j.demeyer@gmail.com>
Tue, 30 Apr 2024 15:01:41 +0000 (17:01 +0200)
Some integration tests expect to be able to reboot so switch to using
the new systemd.crash_action=poweroff instead.

test/integration-test-wrapper.py

index bb19a6d10d85ce64af9a8b5f11f7442d7934aa4b..0d3e4abde7b0de8a2b2bec28bd6c1718358f2364 100755 (executable)
@@ -93,8 +93,6 @@ def main():
                 f"systemd.extra-unit.emergency-exit.service={shlex.quote(EMERGENCY_EXIT_SERVICE)}",
                 '--credential',
                 f"systemd.unit-dropin.emergency.target={shlex.quote(EMERGENCY_EXIT_DROPIN)}",
-                # Custom firmware variables allow bypassing the EFI auto-enrollment reboot so we only reboot on crash
-                '--qemu-firmware-variables=custom',
             ]
             if not sys.stderr.isatty()
             else []
@@ -115,7 +113,7 @@ def main():
                     "systemd.mask=serial-getty@.service",
                     "systemd.show_status=no",
                     "systemd.crash_shell=0",
-                    "systemd.crash_reboot",
+                    "systemd.crash_action=poweroff",
                 ]
                 if not sys.stderr.isatty()
                 else []
@@ -124,7 +122,6 @@ def main():
         '--credential', f"journal.storage={'persistent' if sys.stderr.isatty() else 'runtime'}" ,
         *args.mkosi_args,
         'qemu',
-        *(['-no-reboot'] if not sys.stderr.isatty() else [])
     ]
 
     result = subprocess.run(cmd)