From 9e6d58796158d0418e0e4ba641db5b00aacee695 Mon Sep 17 00:00:00 2001 From: Yu Watanabe Date: Wed, 8 Nov 2023 12:16:26 +0900 Subject: [PATCH] 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. --- test/test-network-generator-conversion.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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