66 if not hasattr(session,
"items"):
69 if os.environ.get(
"DISABLE_CTEST_MEASUREMENTS") ==
"1":
73 outcomes = defaultdict(list)
75 if key.endswith(
".outcome"):
76 outcomes[results[key]].append(key[:-8])
78 (f
"outcome.{outcome}", sorted(tests))
for outcome, tests
in outcomes.items()
81 ignore_keys = {
"test_fixture_setup.completed_process"}
83 '<DartMeasurement type="text/string" name="{name}">{value}</DartMeasurement>'
88 for key, value
in results.items()
89 if not any(key.endswith(ignore_key)
for ignore_key
in ignore_keys)
and value
92 for key, value
in to_print:
95 key = key.replace(
"/",
"_")
96 print(template.format(name=key, value=sanitized_value), end=
"")