Skip to content

Commit

Permalink
unit test MDL-19060 prevent unit tests from scanning cvs and .git dir…
Browse files Browse the repository at this point in the history
…ectories
  • Loading branch information
Andrew Davis committed Nov 27, 2009
1 parent d31629c commit f6607a9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion admin/report/unittest/ex_simple_test.php
Expand Up @@ -61,7 +61,7 @@ function _recurseFolders($path) {
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);
}
Expand Down

0 comments on commit f6607a9

Please sign in to comment.