summaryrefslogtreecommitdiff
path: root/lib/custodian
diff options
context:
space:
mode:
authorSteve Kemp <steve@steve.org.uk>2015-04-24 14:27:58 +0100
committerSteve Kemp <steve@steve.org.uk>2015-04-24 14:27:58 +0100
commita61bd9133165387a944fd6b1ddda7d787051235b (patch)
tree3a58071441b8b053c6cac4b9bd9a2cae0e304188 /lib/custodian
parente39d621fb414cf9ee95dabbe7c837e96cee65ea5 (diff)
Use the expanded version of our return-codes.
Rather than showing "2, 4, etc" we use the expansion routine to show TEST_FAILED, TEST_PASSED, etc. This reads more neatly.
Diffstat (limited to 'lib/custodian')
-rw-r--r--lib/custodian/worker.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/custodian/worker.rb b/lib/custodian/worker.rb
index a6995f9..8d5e284 100644
--- a/lib/custodian/worker.rb
+++ b/lib/custodian/worker.rb
@@ -185,7 +185,7 @@ module Custodian
# Invert the test, if the result was pass/fail
#
if test.inverted?
- puts "The test was inverted - old result was : #{result}"
+ puts "The test was inverted - old result was : #{Custodian::TestResult.to_str(result)}"
if (result == Custodian::TestResult::TEST_FAILED)
result = Custodian::TestResult::TEST_PASSED
@@ -196,7 +196,7 @@ module Custodian
result = Custodian::TestResult::TEST_FAILED
end
end
- puts "The test was inverted - new result is : #{result}"
+ puts "The test was inverted - new result is : #{Custodian::TestResult.to_str(result)}"
end
@@ -217,7 +217,7 @@ module Custodian
# be no delay. If the test fails then we'll sleep.
#
if (run == true) && (@retry_delay > 0) && (count < @retry_count)
- log_message("Sleeping #{@retry_delay} before retry - failure: #{test.error}")
+ log_message("Sleeping for #{@retry_delay} seconds before retry. Failure was: #{test.error}")
sleep(@retry_delay)
end