From 9c6354e5be3db406fa7f0966d65063e1d3b4d242 Mon Sep 17 00:00:00 2001 From: Tobias Sarnowski Date: Wed, 18 Apr 2012 18:04:25 +0000 Subject: use original conf directory and only shadow special files https://github.com/splitbrain/dokuwiki/pull/96#issuecomment-5195756 --- _test/bootstrap.php | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) (limited to '_test/bootstrap.php') diff --git a/_test/bootstrap.php b/_test/bootstrap.php index f8ca4d483..6c3d6aaa8 100644 --- a/_test/bootstrap.php +++ b/_test/bootstrap.php @@ -71,11 +71,16 @@ $default_server_vars = array( mkdir(TMP_DIR); // cleanup dir after exit -register_shutdown_function(function() { - TestUtils::rdelete(TMP_DIR); -}); +if (getenv('PRESERVE_TMP') != 'true') { + register_shutdown_function(function() { + TestUtils::rdelete(TMP_DIR); + }); +} else { + echo ">>>> Preserving temporary directory: ".TMP_DIR."\n"; +} // populate default dirs +TestUtils::rcopy(TMP_DIR, DOKU_INC.'/conf'); TestUtils::rcopy(TMP_DIR, dirname(__FILE__).'/conf'); TestUtils::rcopy(TMP_DIR, dirname(__FILE__).'/data'); -- cgit v1.2.3