diff options
author | Tobias Sarnowski <tobias@trustedco.de> | 2012-04-18 18:04:25 +0000 |
---|---|---|
committer | Tobias Sarnowski <tobias@trustedco.de> | 2012-04-18 18:04:25 +0000 |
commit | 9c6354e5be3db406fa7f0966d65063e1d3b4d242 (patch) | |
tree | 4f623d8cf68172dc33fd400569ef0c42738da407 /_test/bootstrap.php | |
parent | 12ee47747b9cb9a810efab28352eeb0f0bbb9998 (diff) | |
download | rpg-9c6354e5be3db406fa7f0966d65063e1d3b4d242.tar.gz rpg-9c6354e5be3db406fa7f0966d65063e1d3b4d242.tar.bz2 |
use original conf directory and only shadow special files
https://github.com/splitbrain/dokuwiki/pull/96#issuecomment-5195756
Diffstat (limited to '_test/bootstrap.php')
-rw-r--r-- | _test/bootstrap.php | 11 |
1 files changed, 8 insertions, 3 deletions
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'); |