diff --git a/lnst/RecipeCommon/Perf/Measurements/XDPBenchMeasurement.py b/lnst/RecipeCommon/Perf/Measurements/XDPBenchMeasurement.py index 64c76275..6d02ad31 100644 --- a/lnst/RecipeCommon/Perf/Measurements/XDPBenchMeasurement.py +++ b/lnst/RecipeCommon/Perf/Measurements/XDPBenchMeasurement.py @@ -218,8 +218,8 @@ def report_results(cls, recipe: BaseRecipe, results: list[AggregatedXDPBenchMeas recipe_result = ResultType.PASS metrics = {"Generator": generator, "Receiver": receiver} - for name, result in metrics.items(): - if cls._invalid_flow_duration(result): + for name, metric_result in metrics.items(): + if cls._invalid_flow_duration(metric_result): recipe_result = ResultType.FAIL desc.append("{} has invalid duration!".format(name))