diff options
author | Eric Wong <normalperson@yhbt.net> | 2010-05-20 03:05:36 -0700 |
---|---|---|
committer | Eric Wong <normalperson@yhbt.net> | 2010-05-20 03:05:36 -0700 |
commit | abc207b2918606867094f2820bab58223e99aac4 (patch) | |
tree | ef7bdfa93654b575c30186067f1908e6436c0db1 | |
parent | 9d17cc820044e797a12146730dc260e60302022a (diff) | |
download | rainbows-abc207b2918606867094f2820bab58223e99aac4.tar.gz |
non-random_blob arguments weren't being taken into account correctly :x
-rwxr-xr-x | t/t0102-rack-input-short.sh | 2 | ||||
-rw-r--r-- | t/test-lib.sh | 2 |
2 files changed, 2 insertions, 2 deletions
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 |