summaryrefslogtreecommitdiff
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
commit6ff2a3883c5cd3b0bef18ba27728059c4bc34552 (patch)
tree0ac8186fb8b3d989b245b9e2276f7a7a8124b698
parentf4efd8eb3373cd22ca1442bb215b8ebd240f8fb1 (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.
-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