From: Ondrej Lichtner <olichtne(a)redhat.com>
The evaluation result object created by the base evaluation method
should indicate that this is in fact a "not implemented" evaluation.
This should be overriden by a specific evaluation policy.
Signed-off-by: Ondrej Lichtner <olichtne(a)redhat.com>
---
.../Perf/Measurements/BaseFlowMeasurement.py | 11 +----------
1 file changed, 1 insertion(+), 10 deletions(-)
diff --git a/lnst/RecipeCommon/Perf/Measurements/BaseFlowMeasurement.py
b/lnst/RecipeCommon/Perf/Measurements/BaseFlowMeasurement.py
index da0b5f4..9e0b92e 100644
--- a/lnst/RecipeCommon/Perf/Measurements/BaseFlowMeasurement.py
+++ b/lnst/RecipeCommon/Perf/Measurements/BaseFlowMeasurement.py
@@ -154,16 +154,7 @@ class BaseFlowMeasurement(BaseMeasurement):
@classmethod
def evaluate_results(cls, recipe, results):
#TODO split off into a separate evaluator class
- for flow_results in results:
- if flow_results.generator_results.average > 0:
- recipe.add_result(True, "Generator reported non-zero
throughput")
- else:
- recipe.add_result(False, "Generator reported zero throughput")
-
- if flow_results.receiver_results.average > 0:
- recipe.add_result(True, "Receiver reported non-zero
throughput")
- else:
- recipe.add_result(False, "Receiver reported zero throughput")
+ recipe.add_result(True, "Flow result evaluation not implemented")
@classmethod
def _report_flow_results(cls, recipe, flow_results):
--
2.21.0