Skip to content

Commit

Permalink
macOS doesn't support readarray either
Browse files Browse the repository at this point in the history
  • Loading branch information
pcolby committed Feb 11, 2024
1 parent c828f60 commit 7669a4b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion test/test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@ set -o errexit -o noclobber -o nounset -o pipefail
failures=0
while IFS= read -d '' -r dirName; do
echo "Test case: ${dirName##*/}"
readarray -td '' tapFiles < <(find "${dirName}" -name '*.tap' -type f -d -print0 || :)
tapFiles=()
while IFS='' read -r file; do tapFiles+=("${file}"); done < <(find "${dirName}" -name '*.tap' -type f -d -print || :)
gawk -f "${SOURCE_DIR}/../summary.gawk" --sandbox -- "${tapFiles[@]}" >| "${dirName}/observed.md"
case "${OSTYPE}" in
darwin*) extraDiffArgs='' ;; # macOS
Expand Down

0 comments on commit 7669a4b

Please sign in to comment.