From 5819f5ed3905a7446630fd46b13a7e8f9d1fe463 Mon Sep 17 00:00:00 2001 From: webchick <webchick@24967.no-reply.drupal.org> Date: Fri, 10 Aug 2012 16:19:20 -0700 Subject: [PATCH] Issue #1719530 by tim.plunkett, sun: Add --keep-results flag to run-tests.sh. --- core/scripts/run-tests.sh | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/core/scripts/run-tests.sh b/core/scripts/run-tests.sh index b71ea8d56538..943c14bb3ab4 100755 --- a/core/scripts/run-tests.sh +++ b/core/scripts/run-tests.sh @@ -82,7 +82,9 @@ } // Clean up all test results. -simpletest_clean_results_table(); +if (!$args['keep-results']) { + simpletest_clean_results_table(); +} // Test complete, exit. exit; @@ -348,7 +350,9 @@ function simpletest_script_execute_batch($test_classes) { echo 'FATAL ' . $child['class'] . ': test runner returned a non-zero error code (' . $status['exitcode'] . ').' . "\n"; } // Free-up space by removing any potentially created resources. - simpletest_script_cleanup($child['test_id'], $child['class'], $status['exitcode']); + if (!$args['keep-results']) { + simpletest_script_cleanup($child['test_id'], $child['class'], $status['exitcode']); + } // Remove this child. unset($children[$cid]); -- GitLab