From f6607a9c16d0a96b8c935c4eeecce6f3ab332cc8 Mon Sep 17 00:00:00 2001 From: Andrew Davis Date: Fri, 27 Nov 2009 05:39:35 +0000 Subject: [PATCH] unit test MDL-19060 prevent unit tests from scanning cvs and .git directories --- admin/report/unittest/ex_simple_test.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/admin/report/unittest/ex_simple_test.php b/admin/report/unittest/ex_simple_test.php index 5f979b0a2a..0716a8dd48 100644 --- a/admin/report/unittest/ex_simple_test.php +++ b/admin/report/unittest/ex_simple_test.php @@ -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); } -- 2.39.5