Skip to content
Myr

Try to fix test on macOS

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by sharkdp · committed by sharkdp · parent a790f9b · Browse files · 1 file+2 added−1 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+2 added−1 removed

  • tests:+2 added−1 removed

1 file+2 added−1 removed

modified:tests/test.sh+2 added-1 removed
30 unmodified lines
31 tmp_output="$(mktemp -t "$MKTEMP_TEMPLATE")"3233 echo "$expected_output" > "$tmp_expected"3435 "$fd" "$@" | sed -e 's/\x0/NULL\n/g' | sort -f > "$tmp_output"35 # Use python instead of sed here (for this to work on macOS)36 "$fd" "$@" | python -c 'import sys; sys.stdout.write(sys.stdin.read().replace("\0", "NULL\n"))' | sort -f > "$tmp_output"3738 echo -ne " ${bold}▶${reset} Testing 'fd $*' ... "3940 if diff -q "$tmp_expected" "$tmp_output" > /dev/null; then
189 unmodified lines