From: Ondrej Lichtner <olichtne(a)redhat.com>
This is used by evaluator classes to access the recipe during evaluation
for parameters or other data useful for evaluating the generated
results.
Signed-off-by: Ondrej Lichtner <olichtne(a)redhat.com>
---
.../Perf/Measurements/TRexFlowMeasurement.py | 10 +++++++++-
1 file changed, 9 insertions(+), 1 deletion(-)
diff --git a/lnst/RecipeCommon/Perf/Measurements/TRexFlowMeasurement.py
b/lnst/RecipeCommon/Perf/Measurements/TRexFlowMeasurement.py
index 5f5c705..800b7b7 100644
--- a/lnst/RecipeCommon/Perf/Measurements/TRexFlowMeasurement.py
+++ b/lnst/RecipeCommon/Perf/Measurements/TRexFlowMeasurement.py
@@ -16,7 +16,15 @@
from lnst.Tests.TRex import TRexServer, TRexClient
class TRexFlowMeasurement(BaseFlowMeasurement):
- def __init__(self, flows, trex_dir, server_cpu_cores):
+ def __init__(self, flows, trex_dir, server_cpu_cores, recipe_conf=None):
+ super(TRexFlowMeasurement, self).__init__(
+ measurement_conf=dict(
+ flows=flows,
+ trex_dir=trex_dir,
+ server_cpu_cores=server_cpu_cores,
+ ),
+ recipe_conf=recipe_conf,
+ )
self._flows = flows
self._trex_dir = trex_dir
self._server_cpu_cores = server_cpu_cores
--
2.28.0