From df90a44f3fc23382e0b927ead81975289f5b93ca Mon Sep 17 00:00:00 2001 From: Rajesh Taneja Date: Wed, 15 Feb 2017 10:16:09 +0800 Subject: [PATCH] MDL-57030 behat: Save run status after execution --- admin/tool/behat/cli/run.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/admin/tool/behat/cli/run.php b/admin/tool/behat/cli/run.php index 65a6e4b0a39..e402efa96dc 100644 --- a/admin/tool/behat/cli/run.php +++ b/admin/tool/behat/cli/run.php @@ -289,11 +289,11 @@ if (empty($parallelrun)) { print_each_process_info($processes, $verbose, $status); } +// Save final exit code containing which run failed. +behat_config_manager::set_behat_run_config_value('lastcombinedfailedstatus', $status); + // Show exit code from each process, if any process failed and how to rerun failed process. if ($verbose || $status) { - // Save final exit code containing which run failed. - behat_config_manager::set_behat_run_config_value('lastcombinedfailedstatus', $status); - // Check if status of last run is failure and rerun is suggested. if (!empty($options['auto-rerun']) && $status) { // Rerun for the number of tries passed.