From: Daan De Meyer Date: Mon, 3 Mar 2025 11:35:11 +0000 (+0100) Subject: test: Connect test unit to console when running interactively X-Git-Tag: v258-rc1~1192^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=refs%2Fpull%2F36586%2Fhead;p=thirdparty%2Fsystemd.git test: Connect test unit to console when running interactively When running interactively, let's connect the test unit directly to the console. This enables adding "bash" anywhere within an integration test to get a shell within the test environment. --- diff --git a/test/integration-test-wrapper.py b/test/integration-test-wrapper.py index e9c5a295bc4..55eca9f75aa 100755 --- a/test/integration-test-wrapper.py +++ b/test/integration-test-wrapper.py @@ -456,6 +456,16 @@ def main() -> None: [Unit] Wants=multi-user.target getty-pre.target Before=getty-pre.target + + [Service] + StandardInput=tty + StandardOutput=inherit + StandardError=inherit + TTYReset=yes + TTYVHangup=yes + IgnoreSIGPIPE=no + # bash ignores SIGTERM + KillSignal=SIGHUP """ )