create tmp data dir for tests if it does not exist
This commit is contained in:
parent
200b25be5d
commit
2ad55da50c
1 changed files with 8 additions and 0 deletions
|
@ -20,4 +20,12 @@ function deleteDirRecursively($dir) {
|
|||
rmdir($dir);
|
||||
}
|
||||
|
||||
if(!is_dir('tests/_tmp')) {
|
||||
mkdir('tests/_tmp');
|
||||
}
|
||||
|
||||
if(!is_dir($tmpDataDir)) {
|
||||
mkdir($tmpDataDir);
|
||||
}
|
||||
|
||||
deleteDirRecursively($tmpDataDir);
|
||||
|
|
Loading…
Reference in a new issue