Mercurial > hg > nginx-tests
changeset 8:a58a62e9d695
Tests: don't cleanup temp directories if LEAVE set in the env.
author | Maxim Dounin <mdounin@mdounin.ru> |
---|---|
date | Wed, 10 Sep 2008 17:36:14 +0400 |
parents | 9eb509695651 |
children | f772e2a1a13f |
files | _common.pm |
diffstat | 1 files changed, 2 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/_common.pm Mon Sep 08 06:08:38 2008 +0400 +++ b/_common.pm Wed Sep 10 17:36:14 2008 +0400 @@ -31,7 +31,8 @@ sub start_nginx { my ($conf) = @_; - $testdir = tempdir('nginx-test-XXXXXXXXXX', TMPDIR => 1, CLEANUP => 1) + $testdir = tempdir('nginx-test-XXXXXXXXXX', TMPDIR => 1, + CLEANUP => not $ENV{LEAVE}) or die "Can't create temp directory: $!\n"; system("cat $conf | sed 's!%%TESTDIR%%!$testdir!g' "