mirror of
https://github.com/moodle/moodle.git
synced 2025-01-19 14:27:22 +01:00
MDL-39752 behat: Return proper behat dir if config set
This commit is contained in:
parent
9fe26fb874
commit
17e675a7fc
@ -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'])) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user