mirror of
https://github.com/sharkdp/fd
synced 2024-10-01 13:33:55 +00:00
Try to fix test on macOS
This commit is contained in:
parent
a790f9bd62
commit
fde8f2e8e3
|
@ -32,7 +32,8 @@ expect() {
|
|||
|
||||
echo "$expected_output" > "$tmp_expected"
|
||||
|
||||
"$fd" "$@" | sed -e 's/\x0/NULL\n/g' | sort -f > "$tmp_output"
|
||||
# Use python instead of sed here (for this to work on macOS)
|
||||
"$fd" "$@" | python -c 'import sys; sys.stdout.write(sys.stdin.read().replace("\0", "NULL\n"))' | sort -f > "$tmp_output"
|
||||
|
||||
echo -ne " ${bold}▶${reset} Testing 'fd $*' ... "
|
||||
|
||||
|
|
Loading…
Reference in a new issue