Unless the do_ping_tests method is overriden, the default is to check
the minimum ping rate that must be higher than 50%.
Signed-off-by: Jan Tluka <jtluka(a)redhat.com>
---
lnst/Recipes/ENRT/BaseEnrtRecipe.py | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/lnst/Recipes/ENRT/BaseEnrtRecipe.py b/lnst/Recipes/ENRT/BaseEnrtRecipe.py
index a098553a..c68c86e7 100644
--- a/lnst/Recipes/ENRT/BaseEnrtRecipe.py
+++ b/lnst/Recipes/ENRT/BaseEnrtRecipe.py
@@ -14,6 +14,7 @@ from lnst.RecipeCommon.Perf.Measurements import Flow as PerfFlow
from lnst.RecipeCommon.Perf.Measurements import IperfFlowMeasurement
from lnst.RecipeCommon.Perf.Measurements import StatCPUMeasurement
from lnst.RecipeCommon.Perf.Evaluators import NonzeroFlowEvaluator
+from lnst.RecipeCommon.Ping.Evaluators import RatePingEvaluator
class EnrtConfiguration(object):
pass
@@ -101,6 +102,9 @@ class BaseEnrtRecipe(BaseSubConfigMixin, PingTestAndEvaluate,
PerfRecipe):
def do_ping_tests(self, recipe_config):
for ping_config in self.generate_ping_configurations(recipe_config):
+ for pconf in ping_config:
+ pconf.register_evaluators([RatePingEvaluator(min_rate=50)])
+
result = self.ping_test(ping_config)
self.ping_report_and_evaluate(result)
--
2.21.1