diff options
author | Eric Wong <normalperson@yhbt.net> | 2010-06-10 18:39:31 -0700 |
---|---|---|
committer | Eric Wong <normalperson@yhbt.net> | 2010-06-10 18:41:07 -0700 |
commit | 20e84b261be1b7452d0e91b3c7d072413c8e5aea (patch) | |
tree | abb878f5d5f38026fb30065c76c459df85470825 /t | |
parent | f9baab18705218dae4c37c2c92d1ceea151bba8e (diff) | |
download | unicorn-20e84b261be1b7452d0e91b3c7d072413c8e5aea.tar.gz |
We share the same array from the original bin/* down into the Configurator.
Diffstat (limited to 't')
-rwxr-xr-x | t/t0303-rails3-alt-working_directory_config.ru.sh | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/t/t0303-rails3-alt-working_directory_config.ru.sh b/t/t0303-rails3-alt-working_directory_config.ru.sh index f29dbe7..b6fe5e7 100755 --- a/t/t0303-rails3-alt-working_directory_config.ru.sh +++ b/t/t0303-rails3-alt-working_directory_config.ru.sh @@ -6,11 +6,12 @@ then fi . ./test-rails3.sh -t_plan 4 "Rails 3 (beta) inside alt working_directory (w/ config.ru)" +t_plan 5 "Rails 3 (beta) inside alt working_directory (w/ config.ru)" t_begin "setup and start" && { unicorn_setup - rtmpfiles unicorn_config_tmp + rtmpfiles unicorn_config_tmp usock + rm -f $usock rails3_app=$(cd rails3-app && pwd) rm -rf $t_pfx.app mkdir $t_pfx.app @@ -21,7 +22,7 @@ t_begin "setup and start" && { unicorn_setup rm $pid - echo "#\\--daemonize --host $host --port $port" \ + echo "#\\--daemonize --host $host --port $port -l $usock" \ >> $t_pfx.app/config.ru # we have --host/--port in config.ru instead @@ -46,6 +47,10 @@ t_begin "static file serving works" && { test x"$(curl -sSf http://$listen/x.txt)" = xHELLO } +t_begin "socket created" && { + test -S $usock +} + t_begin "killing succeeds" && { kill $unicorn_pid } |