diff options
author | Eric Wong <normalperson@yhbt.net> | 2011-02-04 17:48:34 -0800 |
---|---|---|
committer | Eric Wong <normalperson@yhbt.net> | 2011-02-04 17:50:03 -0800 |
commit | f015a843fcfa120286628ec75829575ee2391380 (patch) | |
tree | 3e53a3f08d65a92c34acc3778ffe2285d9fe7298 /t/t0107-rack-input-limit-zero.sh | |
parent | 82579a5f20531e69eb40e6a58a931b6c5f77d548 (diff) | |
download | rainbows-f015a843fcfa120286628ec75829575ee2391380.tar.gz |
ed can do in-place editing portably, unlike sed.
Diffstat (limited to 't/t0107-rack-input-limit-zero.sh')
-rwxr-xr-x | t/t0107-rack-input-limit-zero.sh | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/t/t0107-rack-input-limit-zero.sh b/t/t0107-rack-input-limit-zero.sh index eb947ba..94aa256 100755 --- a/t/t0107-rack-input-limit-zero.sh +++ b/t/t0107-rack-input-limit-zero.sh @@ -5,11 +5,13 @@ req_curl_chunked_upload_err_check t_plan 6 "rack.input client_max_body_size zero" t_begin "setup and startup" && { - rtmpfiles curl_out curl_err cmbs_config + rtmpfiles curl_out curl_err rainbows_setup $model - sed -e 's/client_max_body_size.*/client_max_body_size 0/' \ - < $unicorn_config > $cmbs_config - rainbows -D sha1-random-size.ru -c $cmbs_config + ed -s $unicorn_config <<EOF +,s/client_max_body_size.*/client_max_body_size 0/ +w +EOF + rainbows -D sha1-random-size.ru -c $unicorn_config rainbows_wait_start empty_sha1=da39a3ee5e6b4b0d3255bfef95601890afd80709 } |