mirror of
https://github.com/Dasharo/systemd.git
synced 2026-03-06 15:02:31 -08:00
test: fix debugging of nspawn tests
The pipe stuff introduced in701e0c2660causes 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 to701e0c2660.
This commit is contained in:
committed by
Luca Boccassi
parent
337e8504f7
commit
5599c84bcd
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user