diff --git a/tests/host_tools/fcmetrics.py b/tests/host_tools/fcmetrics.py index 864481b68e2..f340aa4aaf3 100644 --- a/tests/host_tools/fcmetrics.py +++ b/tests/host_tools/fcmetrics.py @@ -479,7 +479,10 @@ def flatten_dict(node, prefix: str): failure_metrics = { key: value for key, value in flattened_metrics.items() - if "err" in key or "fail" in key or "panic" in key or "num_faults" in key + if "err" in key.split(".")[-1] + or "fail" in key.split(".")[-1] + or "panic" in key.split(".")[-1] + or "num_faults" in key.split(".")[-1] if value if key not in ignored_failure_metrics }