From 38f300b95fd7a66f0ffd546e65eb30571fc4d910 Mon Sep 17 00:00:00 2001 From: Steve Kemp Date: Thu, 15 Nov 2012 13:49:41 +0000 Subject: Log [attempt/max] rather than just attempt for failures --- lib/custodian.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib') diff --git a/lib/custodian.rb b/lib/custodian.rb index e93b790..0b2caf6 100644 --- a/lib/custodian.rb +++ b/lib/custodian.rb @@ -69,10 +69,10 @@ class Custodian @retry_count=3 end - log_message( "We'll run each test #{@retry_count} before alerting failures." ) end + # # Write the given message to our logfile - and show it to the console # if we're running with '--verbose' in play @@ -177,7 +177,7 @@ class Custodian # while ( ( count < @retry_count ) && ( success == false ) ) - log_message( "Running test - attempt #{count}" ) + log_message( "Running test - [#{count}/#{@retry_count}]" ) if ( obj.run_test() ) log_message( "Test succeeed - clearing alert" ) -- cgit v1.2.1