# HG changeset patch # User Andrei Belov # Date 1392918010 -14400 # Node ID 5fdde9f755c93e80fa9e31163dc26ea3abe67bb7 # Parent ac804fd1eb56ee13410102946a1449f7f308c4de Tests: a couple of auxiliary environment variables introduced. diff --git a/lib/Test/Nginx.pm b/lib/Test/Nginx.pm --- a/lib/Test/Nginx.pm +++ b/lib/Test/Nginx.pm @@ -348,6 +348,9 @@ sub test_globals() { $s .= "pid $self->{_testdir}/nginx.pid;\n"; $s .= "error_log $self->{_testdir}/error.log debug;\n"; + $s .= $ENV{TEST_NGINX_GLOBALS} + if $ENV{TEST_NGINX_GLOBALS}; + $self->{_test_globals} = $s; } @@ -375,6 +378,9 @@ sub test_globals_http() { $s .= "scgi_temp_path $self->{_testdir}/scgi_temp;\n" if $self->has_module('scgi'); + $s .= $ENV{TEST_NGINX_GLOBALS_HTTP} + if $ENV{TEST_NGINX_GLOBALS_HTTP}; + $self->{_test_globals_http} = $s; }