From abc207b2918606867094f2820bab58223e99aac4 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Thu, 20 May 2010 03:05:36 -0700 Subject: tests: fix sha1sum usage non-random_blob arguments weren't being taken into account correctly :x --- t/t0102-rack-input-short.sh | 2 +- t/test-lib.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 't') diff --git a/t/t0102-rack-input-short.sh b/t/t0102-rack-input-short.sh index 97c079d..6161cdd 100755 --- a/t/t0102-rack-input-short.sh +++ b/t/t0102-rack-input-short.sh @@ -8,7 +8,7 @@ t_begin "setup and startup" && { rtmpfiles curl_out curl_err rainbows_setup $model rainbows -D sha1-random-size.ru -c $unicorn_config - blob_sha1=$(rsha1 random_blob) + blob_sha1=$(rsha1 < random_blob) t_info "blob_sha1=$blob_sha1" rainbows_wait_start } diff --git a/t/test-lib.sh b/t/test-lib.sh index bf2e7b5..cdeff39 100644 --- a/t/test-lib.sh +++ b/t/test-lib.sh @@ -159,7 +159,7 @@ rsha1 () { # last resort, see comments in sha1sum.rb for reasoning test -n "$_cmd" || _cmd=sha1sum.rb - expr "$($_cmd < random_blob)" : '\([a-f0-9]\{40\}\)' + expr "$($_cmd)" : '\([a-f0-9]\{40\}\)' } case $model in -- cgit v1.2.3-24-ge0c7