Commit f5bcc917 authored by Łukasz Nowak's avatar Łukasz Nowak

promise/plugin: check_file_state configurability

Allow to configure periodicity and anomaly in the profile, as otherwise the
promise configuration is not flexible enough for the profile developer, which
has to decide what shall be the effect of promise failure and when it shall
be checked.
parent 07cb3561
...@@ -13,6 +13,14 @@ class RunPromise(GenericPromise): ...@@ -13,6 +13,14 @@ class RunPromise(GenericPromise):
self.result_count = int(self.getConfig('result-count', '1')) self.result_count = int(self.getConfig('result-count', '1'))
self.failure_amount = int(self.getConfig('failure-amount', '1')) self.failure_amount = int(self.getConfig('failure-amount', '1'))
if self.getConfig(
'perdiodic-only', 'false').lower() in ('true', 'yes', '1'):
self.setTestLess()
if self.getConfig(
'report-anomaly', 'true').lower() in ('false', 'no', '0'):
self.setAnomalyLess()
def sense(self): def sense(self):
""" """
Check state of the filename Check state of the filename
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment