mirror of
https://github.com/moodle/moodle.git
synced 2025-04-21 00:12:56 +02:00
unit test MDL-19060 prevent unit tests from scanning cvs and .git directories
This commit is contained in:
parent
d31629c6e1
commit
f6607a9c16
@ -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);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user