mirror of
https://github.com/morgan9e/systemd
synced 2026-04-14 08:25:20 +09:00
test: set working directory even if it is expected that the command fails
Otherwise, parsing may unexpectedly succeeds but fail to run writing
.network files with permission error.
Follow-up for 6bc5de53e8.
This commit is contained in:
committed by
Zbigniew Jędrzejewski-Szmek
parent
d9c4917b9e
commit
9e6d587961
@@ -307,5 +307,5 @@ INVALID_COMMAND_LINES=(
|
||||
"ip=:::::dhcp99:dhcp6:10.0.0.128:[fdef:c400:bd01:1096::bbbb]:"
|
||||
)
|
||||
for cmdline in "${INVALID_COMMAND_LINES[@]}"; do
|
||||
(! SYSTEMD_LOG_LEVEL=debug SYSTEMD_PROC_CMDLINE="$cmdline" "$GENERATOR_BIN")
|
||||
(! SYSTEMD_LOG_LEVEL=debug SYSTEMD_PROC_CMDLINE="$cmdline" "$GENERATOR_BIN" --root "$WORK_DIR")
|
||||
done
|
||||
|
||||
Reference in New Issue
Block a user