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.
This commit is contained in:
Frantisek Sumsal 2023-08-28 22:42:36 +02:00 committed by Luca Boccassi
parent 337e8504f7
commit 5599c84bcd

View file

@ -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