X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2Foptional_lighttpd-fastcgi.t;h=b64c186ca41832cbd2d27974ef87a0206df5e56c;hb=92f9d3ad4cba9d517c9819c136b4115e917dc46b;hp=6ad351a058578523376388ff3682b7e9cb61f35a;hpb=ac30970a0d0351b0ba3ab0d6de26bfcfc29b7e37;p=catagits%2FCatalyst-Runtime.git diff --git a/t/optional_lighttpd-fastcgi.t b/t/optional_lighttpd-fastcgi.t index 6ad351a..b64c186 100644 --- a/t/optional_lighttpd-fastcgi.t +++ b/t/optional_lighttpd-fastcgi.t @@ -71,12 +71,15 @@ server.port = $port fastcgi.server = ( "" => ( "FastCgiTest" => ( - "socket" => "$docroot/test.socket", - "check-local" => "disable", - "bin-path" => "$docroot/TestApp/script/testapp_fastcgi.pl", - "min-procs" => 1, - "max-procs" => 1, - "idle-timeout" => 20 + "socket" => "$docroot/test.socket", + "check-local" => "disable", + "bin-path" => "$docroot/TestApp/script/testapp_fastcgi.pl", + "min-procs" => 1, + "max-procs" => 1, + "idle-timeout" => 20, + "bin-environment" => ( + "PERL5LIB" => "$docroot/../../lib" + ) ) ) ) @@ -99,7 +102,7 @@ while ( check_port( 'localhost', $port ) != 1 ) { # run the testsuite against the server $ENV{CATALYST_SERVER} = "http://localhost:$port"; -my @tests = glob('t/live_*'); +my @tests = (shift) || glob('t/live_*'); eval { runtests(@tests); };