Issue #2707467 by alexpott: Improve run-tests.sh phpunit error reporting when something goes wrong

8.2.x
Nathaniel Catchpole 2016-04-18 16:29:21 +09:00
parent f4137631a3
commit f664dfa198
1 changed files with 2 additions and 3 deletions

View File

@ -181,6 +181,8 @@ function simpletest_run_tests($test_list) {
function simpletest_run_phpunit_tests($test_id, array $unescaped_test_classnames, &$status = NULL) {
$phpunit_file = simpletest_phpunit_xml_filepath($test_id);
simpletest_phpunit_run_command($unescaped_test_classnames, $phpunit_file, $status);
$rows = simpletest_phpunit_xml_to_rows($test_id, $phpunit_file);
// A $status of 0 = passed test, 1 = failed test, > 1 indicates segfault
// timeout, or other type of failure.
if ($status > 1) {
@ -197,9 +199,6 @@ function simpletest_run_phpunit_tests($test_id, array $unescaped_test_classnames
'file' => $phpunit_file,
];
}
else {
$rows = simpletest_phpunit_xml_to_rows($test_id, $phpunit_file);
}
return $rows;
}