MDL-66979 behat: Warn about old behat.yml file location

This commit is contained in:
Andrew Nicols
2021-01-23 20:45:06 +08:00
parent 6a9f05742e
commit 985f4d1e48
2 changed files with 6 additions and 1 deletions
+5 -1
View File
@@ -179,7 +179,11 @@ class behat_command {
}
// Behat test command.
list($output, $code) = self::run(' --help');
$dirrootconfigpath = $CFG->dirroot . DIRECTORY_SEPARATOR . 'behat.yml';
if (file_exists($dirrootconfigpath)) {
self::output_msg(get_string('warndirrootconfigfound', 'tool_behat', $dirrootconfigpath));
}
list($output, $code) = self::run(" --help");
if ($code != 0) {