diff --git a/admin/tool/behat/cli/run.php b/admin/tool/behat/cli/run.php index 667118b28e4..63e19d22726 100644 --- a/admin/tool/behat/cli/run.php +++ b/admin/tool/behat/cli/run.php @@ -303,6 +303,9 @@ if ($verbose || $status) { unset($extraopts['fromrun']); unset($extraopts['torun']); $extraopts['rerun'] = '--rerun'; + if (!empty($options['replace'])) { + $extraopts['replace'] = '--replace="' . $options['replace'] . '"'; + } $extraoptstr = implode(' ', $extraopts); echo behat_command::get_behat_command(true, true, true) . " " . $extraoptstr . PHP_EOL; }