summaryrefslogtreecommitdiff
path: root/lib/custodian/settings.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/custodian/settings.rb')
-rw-r--r--lib/custodian/settings.rb20
1 files changed, 20 insertions, 0 deletions
diff --git a/lib/custodian/settings.rb b/lib/custodian/settings.rb
index b37e9e4..34a54a6 100644
--- a/lib/custodian/settings.rb
+++ b/lib/custodian/settings.rb
@@ -90,6 +90,26 @@ module Custodian
+ #
+ # The number of times to re-execute a test before
+ # considering it is failed.
+ #
+ def retries
+ _load() unless( _loaded? )
+
+ @settings['retries' ] || 5
+ end
+
+
+ #
+ # Should we sleep before repeating tests?
+ #
+ def retry_delay
+ _load() unless( _loaded? )
+
+ @settings['retry_delay'] || 0
+ end
+
#
# The beanstalkd server address