mirror of
https://github.com/moodle/moodle.git
synced 2025-08-09 02:46:40 +02:00
MDL-43235 behat: Remove notice about undeclared var
This commit is contained in:
parent
8d7c3b0d50
commit
6acf61d35e
1 changed files with 3 additions and 1 deletions
|
@ -148,7 +148,9 @@ class behat_command {
|
||||||
}
|
}
|
||||||
|
|
||||||
// Checking behat dataroot existence otherwise echo about admin/tool/behat/cli/init.php.
|
// Checking behat dataroot existence otherwise echo about admin/tool/behat/cli/init.php.
|
||||||
$CFG->behat_dataroot = realpath($CFG->behat_dataroot);
|
if (!empty($CFG->behat_dataroot)) {
|
||||||
|
$CFG->behat_dataroot = realpath($CFG->behat_dataroot);
|
||||||
|
}
|
||||||
if (empty($CFG->behat_dataroot) || !is_dir($CFG->behat_dataroot) || !is_writable($CFG->behat_dataroot)) {
|
if (empty($CFG->behat_dataroot) || !is_dir($CFG->behat_dataroot) || !is_writable($CFG->behat_dataroot)) {
|
||||||
self::output_msg(get_string('runclitool', 'tool_behat', 'php admin/tool/behat/cli/init.php'));
|
self::output_msg(get_string('runclitool', 'tool_behat', 'php admin/tool/behat/cli/init.php'));
|
||||||
return BEHAT_EXITCODE_CONFIG;
|
return BEHAT_EXITCODE_CONFIG;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue