From fcdb9252312924106a385f51b32bd1c0fd2fe862 Mon Sep 17 00:00:00 2001 From: kitsuyui Date: Thu, 11 Jun 2026 22:35:36 +0900 Subject: [PATCH] fix(test-run-with-timeout-signals): use SCRIPT_DIR instead of cwd-relative path --- scripts/test-run-with-timeout-signals.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/scripts/test-run-with-timeout-signals.sh b/scripts/test-run-with-timeout-signals.sh index da4d24a..3cfd6ed 100644 --- a/scripts/test-run-with-timeout-signals.sh +++ b/scripts/test-run-with-timeout-signals.sh @@ -1,6 +1,8 @@ #!/usr/bin/env bash set -euo pipefail +SCRIPT_DIR="$(cd "$(dirname "$0")" && pwd)" + if ! command -v setsid >/dev/null 2>&1; then echo "setsid unavailable; skipping process-group cancellation test" exit 0 @@ -11,7 +13,7 @@ trap 'rm -rf "${tmpdir}"' EXIT marker="${tmpdir}/writes" : >"${marker}" -scripts/run-with-timeout.sh 30 bash -c "trap '' TERM; (trap '' TERM; while true; do printf x >> \"\$1\"; sleep 0.2; done) & wait" _ "${marker}" & +"${SCRIPT_DIR}/run-with-timeout.sh" 30 bash -c "trap '' TERM; (trap '' TERM; while true; do printf x >> \"\$1\"; sleep 0.2; done) & wait" _ "${marker}" & wrapper_pid=$! for _ in 1 2 3 4 5; do