summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xrun-tests.php8
1 files changed, 7 insertions, 1 deletions
diff --git a/run-tests.php b/run-tests.php
index 57751309c4..fb270f0adf 100755
--- a/run-tests.php
+++ b/run-tests.php
@@ -1764,7 +1764,7 @@ function run_worker(): void
"type" => "tests_finished",
"junit" => $junit->isEnabled() ? $junit : null,
]);
- //junit_init(); TODO is this needed?
+ $junit->clear();
break;
default:
send_message($workerSock, [
@@ -3468,6 +3468,12 @@ class JUnit
return $this->enabled;
}
+ public function clear(): void
+ {
+ $this->rootSuite = self::EMPTY_SUITE + ['name' => 'php'];
+ $this->suites = [];
+ }
+
public function saveXML(): void
{
if (!$this->enabled) {