From 0bcbd5b205087ac82cf1836f83a7fc7463def358 Mon Sep 17 00:00:00 2001 From: Rajesh Taneja Date: Thu, 2 Feb 2017 07:21:56 +0800 Subject: [PATCH] MDL-54628 behat: Rerun command now include replace option passed --- admin/tool/behat/cli/run.php | 3 +++ 1 file changed, 3 insertions(+) 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; }