Skip to content

Commit e003088

Browse files
Modify test parity check to be runnable on Mac
- Script used `mapfile` command, which is unavailable on Mac bash - Replace with `while` loop intended to fulfill the same role Assisted-by: Codex
1 parent 87932e0 commit e003088

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

scripts/check_test_parity.sh

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,12 @@ if ! git rev-parse --verify "$head_ref" > /dev/null 2>&1; then
1515
exit 1
1616
fi
1717

18-
mapfile -t test_files < <(
18+
test_files=()
19+
while IFS= read -r file; do
20+
if [[ -n "$file" ]]; then
21+
test_files+=("$file")
22+
fi
23+
done < <(
1924
git diff --name-only "$base_ref..$head_ref" -- tests | grep -E '\.py$' || true
2025
)
2126

0 commit comments

Comments
 (0)