Index: scripts/run-tests.sh =================================================================== RCS file: /cvs/drupal/drupal/scripts/run-tests.sh,v retrieving revision 1.37 diff -u -r1.37 run-tests.sh --- scripts/run-tests.sh 10 Nov 2009 17:27:54 -0000 1.37 +++ scripts/run-tests.sh 11 Dec 2009 22:54:29 -0000 @@ -81,12 +81,6 @@ // 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(); @@ -298,6 +292,8 @@ foreach ($args['test_names'] as $test_class) { // Execute each test in its separate Drupal environment. simpletest_script_command(1, $args['test-id'], $test_class); + + simpletest_log_read($args['test-id'], $last_prefix, $test_class); } exit; } @@ -338,6 +334,8 @@ // Check if some children finished. foreach ($children as $cid => $child) { if (pcntl_waitpid($child['pid'], $status, WUNTRACED | WNOHANG)) { + simpletest_log_read($args['test-id'], $last_prefix, $child['test_class']); + // This particular child exited. unset($children[$cid]); }