From f015a843fcfa120286628ec75829575ee2391380 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Fri, 4 Feb 2011 17:48:34 -0800 Subject: tests: replace several sed invocations with ed ed can do in-place editing portably, unlike sed. --- t/t0014-config-conflict.sh | 8 +++++--- t/t0104-rack-input-limit-tiny.sh | 10 ++++++---- t/t0105-rack-input-limit-bigger.sh | 10 ++++++---- t/t0107-rack-input-limit-zero.sh | 10 ++++++---- 4 files changed, 23 insertions(+), 15 deletions(-) diff --git a/t/t0014-config-conflict.sh b/t/t0014-config-conflict.sh index b06c915..088f218 100755 --- a/t/t0014-config-conflict.sh +++ b/t/t0014-config-conflict.sh @@ -4,7 +4,7 @@ t_plan 6 "config variables conflict with preload_app" t_begin "setup and start" && { rainbows_setup - rtmpfiles ru rutmp + rtmpfiles ru cat > $ru <<\EOF use Rack::ContentLength @@ -23,8 +23,10 @@ t_begin "hit with curl" && { } t_begin "modify rackup file" && { - sed -e 's/world/WORLD/' < $ru > $rutmp - mv $rutmp $ru + ed -s $ru < $cmbs_config - rainbows -D sha1-random-size.ru -c $cmbs_config + ed -s $unicorn_config < $cmbs_config - rainbows -D sha1-random-size.ru -c $cmbs_config + ed -s $unicorn_config < $cmbs_config - rainbows -D sha1-random-size.ru -c $cmbs_config + ed -s $unicorn_config <