diff options
author | Steve Kemp <steve@steve.org.uk> | 2012-11-13 11:51:17 +0000 |
---|---|---|
committer | Steve Kemp <steve@steve.org.uk> | 2012-11-13 11:51:17 +0000 |
commit | 19ccd831d43dab8bfd3d38327f51d600846c7431 (patch) | |
tree | a49bf0cebcaacc2c25bb56421323c13efa10696e /worker/tests/jabber.rb | |
parent | d6e4f11141a3317efc335d01f7e6eb7120fecd51 (diff) |
Be verbose in our test.
Diffstat (limited to 'worker/tests/jabber.rb')
-rwxr-xr-x | worker/tests/jabber.rb | 5 |
1 files 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?", } |