Home
Documentation
Downloads
Demo
Tracker
Development
Translation
Moodle.net
Search
projects
/
moodle.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b0be5f7
)
MDL-52721 behat: Exclude links in moodle while finding tests
author
Rajesh Taneja
<rajesh@moodle.com>
Tue, 19 Jan 2016 14:06:32 +0000
(22:06 +0800)
committer
Dan Poltawski
<dan@moodle.com>
Tue, 19 Jan 2016 14:35:18 +0000
(14:35 +0000)
Parallel run create links within moodle
so avoid searching for tests within links
lib/testing/classes/tests_finder.php
patch
|
blob
|
blame
|
history
diff --git
a/lib/testing/classes/tests_finder.php
b/lib/testing/classes/tests_finder.php
index
ef59014
..
946ec23
100644
(file)
--- a/
lib/testing/classes/tests_finder.php
+++ b/
lib/testing/classes/tests_finder.php
@@
-132,7
+132,7
@@
class tests_finder {
$directoriestosearch = array();
$alldirs = glob($CFG->dirroot . DIRECTORY_SEPARATOR . '*' , GLOB_ONLYDIR);
foreach ($alldirs as $dir) {
- if (!in_array(basename($dir), $excludedir)) {
+ if (!in_array(basename($dir), $excludedir)
&& (filetype($dir) != 'link')
) {
$directoriestosearch[] = $dir;
}
}