From 012921b18b54f3d943534580e5b9342f619946e1 Mon Sep 17 00:00:00 2001 From: Ondrej Lichtner Date: Tue, 26 Nov 2024 16:13:21 +0100 Subject: [PATCH] AggregatedXDPBenchMeasurementResults: add individual_results For some reason this Aggregated class was missing the individual_results property. Signed-off-by: Ondrej Lichtner --- .../Results/AggregatedXDPBenchMeasurementResults.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/lnst/RecipeCommon/Perf/Measurements/Results/AggregatedXDPBenchMeasurementResults.py b/lnst/RecipeCommon/Perf/Measurements/Results/AggregatedXDPBenchMeasurementResults.py index 92c24e7c..af0363d4 100644 --- a/lnst/RecipeCommon/Perf/Measurements/Results/AggregatedXDPBenchMeasurementResults.py +++ b/lnst/RecipeCommon/Perf/Measurements/Results/AggregatedXDPBenchMeasurementResults.py @@ -8,9 +8,14 @@ class AggregatedXDPBenchMeasurementResults(XDPBenchMeasurementResults): def __init__(self, measurement, flow): super().__init__(measurement, True, flow) + self._individual_results: list[TcRunMeasurementResults] = [] self._generator_results = SequentialPerfResult() self._receiver_results = SequentialPerfResult() + @property + def individual_results(self) -> list[XDPBenchMeasurementResults]: + return self._individual_results + @property def measurement_success(self) -> bool: if self.individual_results: @@ -22,9 +27,11 @@ def add_results(self, results): if results is None: return elif isinstance(results, AggregatedXDPBenchMeasurementResults): + self._individual_results.extend(results.individual_results) self.generator_results.extend(results.generator_results) self.receiver_results.extend(results.receiver_results) elif isinstance(results, XDPBenchMeasurementResults): + self._individual_results.append(results) self.generator_results.append(results.generator_results) self.receiver_results.append(results.receiver_results) else: