diff options
author | Eric Wong <normalperson@yhbt.net> | 2010-06-10 20:55:50 +0000 |
---|---|---|
committer | Eric Wong <normalperson@yhbt.net> | 2010-06-10 21:10:12 +0000 |
commit | c5357d45d506caafee2a90ac550c4c00b4b15ed1 (patch) | |
tree | 7c3341278b95863a9af91e9a97a67be0471e64f2 | |
parent | 30996361d8134fee92f0198f83d71bc32f338de7 (diff) | |
download | unicorn-c5357d45d506caafee2a90ac550c4c00b4b15ed1.tar.gz |
more tests may use it
-rwxr-xr-x | t/t0003-working_directory.sh | 3 | ||||
-rw-r--r-- | t/test-lib.sh | 3 |
2 files changed, 3 insertions, 3 deletions
diff --git a/t/t0003-working_directory.sh b/t/t0003-working_directory.sh index 3faa6c0..60b85f2 100755 --- a/t/t0003-working_directory.sh +++ b/t/t0003-working_directory.sh @@ -8,9 +8,6 @@ t_begin "setup and start" && { rm -rf $t_pfx.app mkdir $t_pfx.app - port=$(expr $listen : '[^:]*:\([0-9]\+\)') - host=$(expr $listen : '\([^:]*\):[0-9]\+') - cat > $t_pfx.app/config.ru <<EOF #\--daemonize --host $host --port $port use Rack::ContentLength diff --git a/t/test-lib.sh b/t/test-lib.sh index 314e0c3..93e1b32 100644 --- a/t/test-lib.sh +++ b/t/test-lib.sh @@ -82,6 +82,9 @@ check_stderr () { # unicorn_setup unicorn_setup () { eval $(unused_listen) + port=$(expr $listen : '[^:]*:\([0-9]\+\)') + host=$(expr $listen : '\([^:]*\):[0-9]\+') + rtmpfiles unicorn_config pid r_err r_out fifo tmp ok cat > $unicorn_config <<EOF listen "$listen" |