From 8658fc3baf2e9f2ea2f18496534ee8038d9f79ee Mon Sep 17 00:00:00 2001
From: Nathaniel Catchpole <catch@35733.no-reply.drupal.org>
Date: Thu, 4 Aug 2016 21:21:30 +0100
Subject: [PATCH] Revert "Issue #2776071 by damiankloip: run-tests.sh does not
 return a non zero status when tests fail with exception"

This reverts commit b026909edb2a53323dc5e0be4756db23b564d43b.
---
 core/scripts/run-tests.sh | 1 -
 1 file changed, 1 deletion(-)

diff --git a/core/scripts/run-tests.sh b/core/scripts/run-tests.sh
index d6705627a79b..15e6e809497e 100755
--- a/core/scripts/run-tests.sh
+++ b/core/scripts/run-tests.sh
@@ -647,7 +647,6 @@ function simpletest_script_execute_batch($test_classes) {
         elseif ($status['exitcode']) {
           $message = 'FATAL ' . $child['class'] . ': test runner returned a non-zero error code (' . $status['exitcode'] . ').';
           echo $message . "\n";
-          $total_status = max($status['exitcode'], $total_status);
           // Insert a fail for xml results.
           TestBase::insertAssert($child['test_id'], $child['class'], FALSE, $message, 'run-tests.sh check');
           // Ensure that an error line is displayed for the class.
-- 
GitLab