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:
9fe26fb
)
MDL-39752 behat: Return proper behat dir if config set
author
Rajesh Taneja
<rajesh@moodle.com>
Tue, 10 Mar 2015 13:42:11 +0000
(21:42 +0800)
committer
Dan Poltawski
<dan@moodle.com>
Tue, 10 Mar 2015 13:51:37 +0000
(13:51 +0000)
lib/behat/classes/behat_command.php
patch
|
blob
|
blame
|
history
diff --git
a/lib/behat/classes/behat_command.php
b/lib/behat/classes/behat_command.php
index
ce6c744
..
7ec8a74
100644
(file)
--- a/
lib/behat/classes/behat_command.php
+++ b/
lib/behat/classes/behat_command.php
@@
-50,6
+50,11
@@
class behat_command {
public static function get_behat_dir($runprocess = 0) {
global $CFG;
+ // If not set then return empty string.
+ if (!isset($CFG->behat_dataroot)) {
+ return "";
+ }
+
if (empty($runprocess)) {
$behatdir = $CFG->behat_dataroot . '/behat';
} else if (isset($CFG->behat_parallel_run[$runprocess - 1]['behat_dataroot'])) {