diff options
author | Dries Buytaert <dries@buytaert.net> | 2009-07-30 10:46:53 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2009-07-30 10:46:53 +0000 |
commit | 8140ed0d84b15156f10fff93430ddefa5dab91f3 (patch) | |
tree | 70d5f977bdd3abf026e0628769bcd15e3ae27174 /scripts | |
parent | 4e96b4e5dfbc6d88d6bce38602916ffd659a5b61 (diff) | |
download | brdo-8140ed0d84b15156f10fff93430ddefa5dab91f3.tar.gz brdo-8140ed0d84b15156f10fff93430ddefa5dab91f3.tar.bz2 |
- Patch #443154 by boombatower, pwolanin: properly report fatal errors as failures.
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/run-tests.sh | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/scripts/run-tests.sh b/scripts/run-tests.sh index 9e42d1dc4..37d3c4399 100755 --- a/scripts/run-tests.sh +++ b/scripts/run-tests.sh @@ -83,6 +83,12 @@ $test_id = db_insert('simpletest_test_id')->useDefaults(array('test_id'))->execu // Execute tests. simpletest_script_command($args['concurrency'], $test_id, implode(",", $test_list)); +// Retrieve the last database prefix used for testing and the last test class +// that was run from. Use the information to read the lgo file in case any +// fatal errors caused the test to crash. +list($last_prefix, $last_test_class) = simpletest_last_test_get($test_id); +simpletest_log_read($test_id, $last_prefix, $last_test_class); + // Display results before database is cleared. simpletest_script_reporter_display_results(); @@ -466,8 +472,6 @@ function simpletest_script_reporter_init() { function simpletest_script_reporter_display_results() { global $args, $test_id, $results_map; - simpletest_log_read($test_id); - echo "\n"; $end = timer_stop('run-tests'); echo "Test run duration: " . format_interval($end['time'] / 1000); |