commit | 63257d07601334cef93ce888103ad014954b42fa | [log] [tgz] |
---|---|---|
author | Maxim Dounin <mdounin@mdounin.ru> | Tue Nov 18 20:43:47 2008 +0300 |
committer | Maxim Dounin <mdounin@mdounin.ru> | Tue Nov 18 20:43:47 2008 +0300 |
tree | fc2a97341212fc01272920f832f0c166e5d3dfce | |
parent | 48c1fb613b1daae36320bc16ad8fc00c0d9f3779 [diff] [blame] |
Tests: use TEST_NGINX_BINARY to find nginx binary. If not specified, fallback to ../nginx/objs/nginx.
diff --git a/lib/Test/Nginx.pm b/lib/Test/Nginx.pm index 244f881..1e2884a 100644 --- a/lib/Test/Nginx.pm +++ b/lib/Test/Nginx.pm
@@ -22,7 +22,8 @@ ############################################################################### -our $NGINX = '../nginx/objs/nginx'; +our $NGINX = defined $ENV{TEST_NGINX_BINARY} ? $ENV{TEST_NGINX_BINARY} + : '../nginx/objs/nginx'; sub new { my $self = {};