Issue #1719530 by tim.plunkett, sun: Add --keep-results flag to run-tests.sh.

8.0.x
webchick 2012-08-10 16:19:20 -07:00
parent 26172602e0
commit 5819f5ed39
1 changed files with 6 additions and 2 deletions

View File

@ -82,7 +82,9 @@ if ($args['xml']) {
}
// 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]);