Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 10 additions & 10 deletions python/pacemaker/_cts/scenarios.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"RandomTests",
"Sequence",
]
__copyright__ = "Copyright 2000-2025 the Pacemaker project contributors"
__copyright__ = "Copyright 2000-2026 the Pacemaker project contributors"
__license__ = "GNU General Public License version 2 or later (GPLv2+) WITHOUT ANY WARRANTY"

import re
Expand Down Expand Up @@ -251,19 +251,19 @@ def summarize(self):
self._cm.log("Overall Results:%r" % self.stats)
self._cm.log("****************")

stat_filter = {
"calls": 0,
"failure": 0,
"skipped": 0,
"auditfail": 0,
}
stat_summary = {}
summary_keys = ["calls", "failure", "skipped", "auditfail"]

self._cm.log("Test Summary")
for test in self.tests:
for key in stat_filter:
stat_filter[key] = test.stats[key]
if test.name not in stat_summary:
stat_summary[test.name] = {key: 0 for key in summary_keys}

for key in summary_keys:
stat_summary[test.name][key] += test.stats[key]

self._cm.log(f"{f'Test {test.name}':<25} {stat_filter!r}")
for (name, summary) in stat_summary.items():
self._cm.log(f"{f'Test {name}':<25} {summary!r}")

self._cm.debug("Detailed Results")
for test in self.tests:
Expand Down