Issue #2465611 by alexpott: Fix --xml option in run-tests.sh

8.0.x
webchick 2015-04-04 15:29:59 -07:00
parent 0a0e884e23
commit 74c98d386d
1 changed files with 2 additions and 2 deletions

View File

@ -949,7 +949,7 @@ function simpletest_script_reporter_write_xml_results() {
if ($result->test_class != $test_class) {
// We've moved onto a new class, so write the last classes results to a file:
if (isset($xml_files[$test_class])) {
file_put_contents($args['xml'] . '/' . $test_class . '.xml', $xml_files[$test_class]['doc']->saveXML());
file_put_contents($args['xml'] . '/' . str_replace('\\', '_', $test_class) . '.xml', $xml_files[$test_class]['doc']->saveXML());
unset($xml_files[$test_class]);
}
$test_class = $result->test_class;
@ -1003,7 +1003,7 @@ function simpletest_script_reporter_write_xml_results() {
}
// The last test case hasn't been saved to a file yet, so do that now:
if (isset($xml_files[$test_class])) {
file_put_contents($args['xml'] . '/' . $test_class . '.xml', $xml_files[$test_class]['doc']->saveXML());
file_put_contents($args['xml'] . '/' . str_replace('\\', '_', $test_class) . '.xml', $xml_files[$test_class]['doc']->saveXML());
unset($xml_files[$test_class]);
}
}