X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2Foptional_lighttpd-fastcgi-non-root.t;h=675d63583110aa818f00c1af72f8b540a0375bea;hb=c45c5d3787dfb147d4bfb4542283f52a3223fa87;hp=d76d489aac4c7a0a37f80315e1aaee5b43ad47e1;hpb=ec904766414ffebc2a3a3fcb13aaf2b7f7805ff4;p=catagits%2FCatalyst-Runtime.git diff --git a/t/optional_lighttpd-fastcgi-non-root.t b/t/optional_lighttpd-fastcgi-non-root.t index d76d489..675d635 100644 --- a/t/optional_lighttpd-fastcgi-non-root.t +++ b/t/optional_lighttpd-fastcgi-non-root.t @@ -20,7 +20,9 @@ plan skip_all => 'File::Copy::Recursive required' if $@; eval "use Test::Harness"; plan skip_all => 'Test::Harness required' if $@; -my $lighttpd_bin = $ENV{LIGHTTPD_BIN}; +my $lighttpd_bin = $ENV{LIGHTTPD_BIN} || `which lighttpd`; +chomp $lighttpd_bin; + plan skip_all => 'Please set LIGHTTPD_BIN to the path to lighttpd' unless $lighttpd_bin && -x $lighttpd_bin;