From: Ondrej Lichtner <olichtne(a)redhat.com>
This commit makes sure that we reinitialize the module options for the
Netperf module passed. This is needed in case a client netperf module is
reused multiple times, in a single python task, in order to remove a
baseline from a previous run.
Signed-off-by: Ondrej Lichtner <olichtne(a)redhat.com>
---
lnst/Controller/PerfRepoUtils.py | 3 +++
1 file changed, 3 insertions(+)
diff --git a/lnst/Controller/PerfRepoUtils.py b/lnst/Controller/PerfRepoUtils.py
index 2169c6b..2dec65e 100644
--- a/lnst/Controller/PerfRepoUtils.py
+++ b/lnst/Controller/PerfRepoUtils.py
@@ -15,6 +15,9 @@ import logging
from lnst.Common.Utils import Noop
def netperf_baseline_template(module, baseline):
+ module.update_options({'threshold': None,
+ 'threshold_deviation': None})
+
if baseline.get_texec() is None:
return module
--
2.6.1
Show replies by date