mirror of
https://github.com/moodle/moodle.git
synced 2025-01-19 14:27:22 +01:00
Merge branch 'MDL-49622' of https://github.com/stronk7/moodle
This commit is contained in:
commit
4c243a24ab
@ -134,13 +134,19 @@ $tags = '';
|
||||
|
||||
if ($options['profile']) {
|
||||
$profile = $options['profile'];
|
||||
if (empty($CFG->behat_config[$profile]['filters']['tags'])) {
|
||||
echo "Invaid profile passed: " . $profile;
|
||||
if (!isset($CFG->behat_config[$profile])) {
|
||||
echo "Invalid profile passed: " . $profile;
|
||||
exit(1);
|
||||
}
|
||||
$tags = $CFG->behat_config[$profile]['filters']['tags'];
|
||||
$extraopts[] = '--profile=\'' . $profile . "'";
|
||||
} else if ($options['tags']) {
|
||||
// By default, profile tags will be used.
|
||||
if (!empty($CFG->behat_config[$profile]['filters']['tags'])) {
|
||||
$tags = $CFG->behat_config[$profile]['filters']['tags'];
|
||||
}
|
||||
}
|
||||
|
||||
// Command line tags have precedence (std behat behavior).
|
||||
if ($options['tags']) {
|
||||
$tags = $options['tags'];
|
||||
$extraopts[] = '--tags="' . $tags . '"';
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user