From 6af71b8633849cc58470aa5997bed7c0462b14f9 Mon Sep 17 00:00:00 2001 From: Gilles Peskine Date: Thu, 31 Oct 2024 20:07:48 +0100 Subject: [PATCH] Improve reporting of repeated configurations Signed-off-by: Gilles Peskine --- scripts/mbedtls_framework/outcome_analysis.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/scripts/mbedtls_framework/outcome_analysis.py b/scripts/mbedtls_framework/outcome_analysis.py index e911bc00b..cc6d90d19 100644 --- a/scripts/mbedtls_framework/outcome_analysis.py +++ b/scripts/mbedtls_framework/outcome_analysis.py @@ -152,10 +152,10 @@ def read_outcome_file(results: Results, outcome_file: str) -> Outcomes: seen[build_name] += 1 # Complain about repeated configurations - for build_name in sorted(seen.keys()): - if seen[build_name] > 1: - results.error('Repeated platform;configuration for library build: {}', - build_name, seen[build_name]) + for build_name in sorted(build_name for build_name in seen.keys() + if seen[build_name] > 1): + results.error('Repeated *{} platform;configuration for library build: {}', + seen[build_name], build_name) return outcomes