fix some DataProvider bug.

This commit is contained in:
whale
2020-05-06 17:19:59 +08:00
parent 181f6430a4
commit 9b3a2e5296
8 changed files with 28 additions and 19 deletions

View File

@@ -54,7 +54,7 @@ function testEnvironment() {
if (!is_file($current_dir . '/config/global.php')) {
echo "Exporting default global config...\n";
$global = file_get_contents(__DIR__ . '/config/global.php');
$global = str_replace("WORKING_DIR", 'realpath("../")', $global);
$global = str_replace("WORKING_DIR", 'realpath(__DIR__ . "/../")', $global);
file_put_contents($current_dir . '/config/global.php', $global);
}
if (!is_file($current_dir . '/config/file_header.json')) {