From 698efc62929e3a3affc5893d28c27b7e29712de5 Mon Sep 17 00:00:00 2001 From: andrussal Date: Thu, 18 Dec 2025 20:44:47 +0100 Subject: [PATCH] scripts: fix --allow-nonzero-progress on macOS --- scripts/run/run-test-matrix.sh | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/scripts/run/run-test-matrix.sh b/scripts/run/run-test-matrix.sh index d4af88d..0fd254c 100755 --- a/scripts/run/run-test-matrix.sh +++ b/scripts/run/run-test-matrix.sh @@ -112,9 +112,12 @@ matrix::forwarded_args() { matrix::log_has_nonzero_progress() { local log="$1" + # Use portable awk (no 3-arg match()) so this works on macOS / busybox. awk ' - match($0, /height[^0-9]*([0-9]+)/, m) { - if (m[1] + 0 > 0) { ok = 1 } + match($0, /height[^0-9]*[0-9]+/) { + s = substr($0, RSTART, RLENGTH) + gsub(/[^0-9]/, "", s) + if (s + 0 > 0) { ok = 1 } } END { exit ok ? 0 : 1 } ' "${log}"