From 74c98d386d8fc7d07682638eaa967026a532f5b4 Mon Sep 17 00:00:00 2001 From: webchick Date: Sat, 4 Apr 2015 15:29:59 -0700 Subject: [PATCH] Issue #2465611 by alexpott: Fix --xml option in run-tests.sh --- core/scripts/run-tests.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/scripts/run-tests.sh b/core/scripts/run-tests.sh index 4dbd4fdd8b9..40753a783f8 100755 --- a/core/scripts/run-tests.sh +++ b/core/scripts/run-tests.sh @@ -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]); } }