create tmp data dir for tests if it does not exist

This commit is contained in:
jelhan 2015-08-01 21:37:15 +02:00
parent 200b25be5d
commit 2ad55da50c

View file

@ -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);