This class defines a common API for any mixin classes that want to perform
additional tasks before each iteration of a Perf.Recipe test.
Signed-off-by: Jan Tluka <jtluka(a)redhat.com>
---
.../BasePerfTestIterationTweakMixin.py | 18 ++++++++++++++++++
1 file changed, 18 insertions(+)
create mode 100644
lnst/RecipeCommon/Perf/PerfTestMixins/BasePerfTestIterationTweakMixin.py
diff --git a/lnst/RecipeCommon/Perf/PerfTestMixins/BasePerfTestIterationTweakMixin.py
b/lnst/RecipeCommon/Perf/PerfTestMixins/BasePerfTestIterationTweakMixin.py
new file mode 100644
index 00000000..6025f76e
--- /dev/null
+++ b/lnst/RecipeCommon/Perf/PerfTestMixins/BasePerfTestIterationTweakMixin.py
@@ -0,0 +1,18 @@
+class BasePerfTestIterationTweakMixin(object):
+ """
+ This class is an extension to the :any:`Perf.Recipe` and defines common API
+ for specific mixin classes that want to perform additional actions before
+ each of the *perf test iterations*.
+
+ The mixin classes should implement each of the methods in collaborative manner.
+ """
+
+ def generate_perf_test_iteration_tweak_description(self, perf_config):
+ return ["Performance test iteration tweaks:"]
+
+ def apply_perf_test_iteration_tweak(self, perf_config):
+ perf_config.perf_test_iteration_tweak_config = {}
+
+ def remove_perf_test_iteration_tweak(self, perf_config):
+ # TODO: check if anything left in the
perf_config.perf_test_iteration_tweak_config
+ pass
--
2.21.3