From fe7413d1955bbf0f8fe869543c423025a22a4671 Mon Sep 17 00:00:00 2001 From: Daan De Meyer Date: Mon, 3 Mar 2025 12:35:11 +0100 Subject: [PATCH] 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. --- test/integration-test-wrapper.py | 10 ++++++++++ 1 file changed, 10 insertions(+) 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 """ ) -- 2.47.3