changeset 133:342b31c8f3af

Tests: use TEST_NGINX_LEAVE instead of LEAVE.
author Maxim Dounin <mdounin@mdounin.ru>
date Thu, 11 Mar 2010 04:00:55 +0300
parents 79ae5c30e6b4
children c4021ebb41b6
files README lib/Test/Nginx.pm
diffstat 2 files changed, 3 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- 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.
--- 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";