MDL-39752 behat: Return proper behat dir if config set

This commit is contained in:
Rajesh Taneja
2015-03-10 13:51:37 +00:00
committed by Dan Poltawski
parent 9fe26fb874
commit 17e675a7fc
+5
View File
@@ -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'])) {