From 5599c84bcdbb712f3c8d173c117c6d672c8c7a48 Mon Sep 17 00:00:00 2001 From: Frantisek Sumsal Date: Mon, 28 Aug 2023 22:42:36 +0200 Subject: [PATCH] test: fix debugging of nspawn tests The pipe stuff introduced in 701e0c2660 causes nspawn to switch the console from 'interactive' into 'read-only' which is a bit useless when debugging. Let's set --console=interactive explicitly in such case. Follow-up to 701e0c2660. --- test/test-functions | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/test/test-functions b/test/test-functions index 8b234668776..1193a162390 100644 --- a/test/test-functions +++ b/test/test-functions @@ -659,7 +659,9 @@ run_nspawn() { ${TEST_MATCH_TESTCASE:+"systemd.setenv=TEST_MATCH_TESTCASE=$TEST_MATCH_TESTCASE"} ) - if ! get_bool "$INTERACTIVE_DEBUG"; then + if get_bool "$INTERACTIVE_DEBUG"; then + nspawn_options+=("--console=interactive") + else kernel_params+=("systemd.wants=end.service") fi