From: Yu Watanabe Date: Wed, 8 Nov 2023 03:16:26 +0000 (+0900) Subject: test: set working directory even if it is expected that the command fails X-Git-Tag: v255-rc2~85 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=9e6d58796158d0418e0e4ba641db5b00aacee695;p=thirdparty%2Fsystemd.git 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 6bc5de53e8410fdec817300185b7ad72cd7775dd. --- diff --git a/test/test-network-generator-conversion.sh b/test/test-network-generator-conversion.sh index f03847c1fae..6224a4d04f9 100755 --- a/test/test-network-generator-conversion.sh +++ b/test/test-network-generator-conversion.sh @@ -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