From 12e4c8518e8cc8430d770fdffca2a39f8fdf84d2 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. (cherry picked from commit fe7413d1955bbf0f8fe869543c423025a22a4671) (cherry picked from commit 4c18caaa750c638cefaba06999ebf17c9c53b6a5) --- 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 01a0b99e1ee..a094c529cdd 100755 --- a/test/integration-test-wrapper.py +++ b/test/integration-test-wrapper.py @@ -133,6 +133,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 """ )