From a61bd9133165387a944fd6b1ddda7d787051235b Mon Sep 17 00:00:00 2001 From: Steve Kemp Date: Fri, 24 Apr 2015 14:27:58 +0100 Subject: 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. --- lib/custodian/worker.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'lib') 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 -- cgit v1.2.1