diff options
author | Eric Wong <normalperson@yhbt.net> | 2013-02-04 12:39:09 +0000 |
---|---|---|
committer | Eric Wong <normalperson@yhbt.net> | 2013-02-04 13:38:13 +0000 |
commit | e6faf9e26bcb172026a4984ecadbaa8b6789bcb7 (patch) | |
tree | 37d8b44818b1f62b7c285124073c85fa50e202e5 /t/t0100-rack-input-hammer-chunked.sh | |
parent | f4e3bac180ff01256832f98655636f79b52f9d5b (diff) | |
download | rainbows-e6faf9e26bcb172026a4984ecadbaa8b6789bcb7.tar.gz |
On FreeBSD 9.0, "wc -l" emits leading whitespace, so filter it through tr -d '[:space:]' to eliminate it.
Diffstat (limited to 't/t0100-rack-input-hammer-chunked.sh')
-rwxr-xr-x | t/t0100-rack-input-hammer-chunked.sh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/t/t0100-rack-input-hammer-chunked.sh b/t/t0100-rack-input-hammer-chunked.sh index efc3a9c..25ed718 100755 --- a/t/t0100-rack-input-hammer-chunked.sh +++ b/t/t0100-rack-input-hammer-chunked.sh @@ -32,11 +32,11 @@ t_begin "send $nr_client concurrent requests" && { t_begin "kill server" && kill $rainbows_pid t_begin "got $nr_client responses" && { - test $nr_client -eq $(wc -l < $curl_out) + test $nr_client -eq $(count_lines < $curl_out) } t_begin "all responses identical" && { - test 1 -eq $(sort < $curl_out | uniq | wc -l) + test 1 -eq $(sort < $curl_out | uniq | count_lines) } t_begin "sha1 matches on-disk sha1" && { |