# HG changeset patch # User Maxim Dounin # Date 1268269255 -10800 # Node ID 342b31c8f3af74e162b353685a04283ebf772f7f # Parent 79ae5c30e6b4c516cd9ccc8811ad4dc7a91a94dc Tests: use TEST_NGINX_LEAVE instead of LEAVE. diff --git a/README b/README --- a/README +++ b/README @@ -18,4 +18,5 @@ installed. Currently each test creates it's own temporary directory and uses it for logs etc. One may instruct tests not to remove the temp directory (e.g. -for analysis of failed test) by setting LEAVE environment variable. +for analysis of failed test) by setting TEST_NGINX_LEAVE environment +variable. diff --git a/lib/Test/Nginx.pm b/lib/Test/Nginx.pm --- a/lib/Test/Nginx.pm +++ b/lib/Test/Nginx.pm @@ -36,7 +36,7 @@ sub new { $self->{_testdir} = tempdir( 'nginx-test-XXXXXXXXXX', TMPDIR => 1, - CLEANUP => not $ENV{LEAVE} + CLEANUP => not $ENV{TEST_NGINX_LEAVE} ) or die "Can't create temp directory: $!\n";