Permalink
Browse files

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

…ectories
  • Loading branch information...
1 parent 5bcd30d commit a368208636e8612166351735b4844608926fa7a9 Andrew Davis committed Nov 27, 2009
Showing with 1 addition and 1 deletion.
  1. +1 −1 admin/report/unittest/ex_simple_test.php
@@ -55,7 +55,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);
}

0 comments on commit a368208

Please sign in to comment.