From 19ccd831d43dab8bfd3d38327f51d600846c7431 Mon Sep 17 00:00:00 2001 From: Steve Kemp Date: Tue, 13 Nov 2012 11:51:17 +0000 Subject: Be verbose in our test. --- worker/tests/jabber.rb | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/worker/tests/jabber.rb b/worker/tests/jabber.rb index c037259..6e34b52 100755 --- a/worker/tests/jabber.rb +++ b/worker/tests/jabber.rb @@ -50,7 +50,7 @@ class JABBERTest host = @test_data['target_host'] port = 5222 - puts "Jabber testing host #{host}:#{port}" + puts "Jabber testing host #{host}:#{port}" if ( @test_data['verbose'] ) begin timeout(3) do @@ -65,7 +65,7 @@ class JABBERTest socket.close() if ( banner =~ /xml version/i ) - puts "Jabber alive: #{banner}" + puts "Jabber alive: #{banner}" if ( @test_data['verbose'] ) return true else @error = "Banner didn't seem reasonable: #{banner}" @@ -108,6 +108,7 @@ if __FILE__ == $0 then test = { "target_host" => "chat.bytemark.co.uk", "test_type" => "jabber", + "verbose" => 1, "test_alert" => "Chat is down?", } -- cgit v1.2.1