unit test MDL-19060 prevent unit tests from scanning cvs and .git directories

This commit is contained in:
Andrew Davis 2009-11-27 05:39:35 +00:00
parent d31629c6e1
commit f6607a9c16

View File

@ -61,7 +61,7 @@ class AutoGroupTest extends TestSuite {
continue;
}
$file_path = $path . '/' . $file;
if (is_dir($file_path)) {
if (is_dir($file_path) && !preg_match('/CVS/i',$file) && !preg_match('/.git/i',$file)) {
if ($file != 'CVS' && !in_array($file_path, $this->ignorefolders)) {
$this->_recurseFolders($file_path);
}