Commit cc3ddd4a authored by alexpott's avatar alexpott

Issue #2582457 by Mixologic, dawehner: Failed PHP Unit tests should report...

Issue #2582457 by Mixologic, dawehner: Failed PHP Unit tests should report detailed information (regression)
parent 9f0005d5
......@@ -178,7 +178,9 @@ function simpletest_run_tests($test_list) {
function simpletest_run_phpunit_tests($test_id, array $unescaped_test_classnames) {
$phpunit_file = simpletest_phpunit_xml_filepath($test_id);
$ret = simpletest_phpunit_run_command($unescaped_test_classnames, $phpunit_file);
if ($ret) {
// A return value of 0 = passed test, 1 = failed test, > 1 indicates segfault
// timeout, or other type of failure.
if ($ret > 1) {
// Something broke during the execution of phpunit.
// Return an error record of all failed classes.
$rows[] = [
......
......@@ -15,7 +15,7 @@ class SimpletestPhpunitRunCommandTestWillDie extends UnitTestCase {
public function testWillDie() {
if (getenv('SimpletestPhpunitRunCommandTestWillDie') === 'fail') {
exit(1);
exit(2);
}
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment