]> git.mjollnir.org Git - moodle.git/commitdiff
unit test MDL-19060 prevent unit tests from scanning cvs and .git directories
authorAndrew Davis <andrew@affinitysoftware.net>
Fri, 27 Nov 2009 05:39:35 +0000 (05:39 +0000)
committerAndrew Davis <andrew@affinitysoftware.net>
Fri, 27 Nov 2009 05:39:35 +0000 (05:39 +0000)
admin/report/unittest/ex_simple_test.php

index 5f979b0a2a81c919dab20531e54563db1c6f5872..0716a8dd486e3055c590c01e720f6208c4ecb83b 100644 (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);
                 }