summaryrefslogtreecommitdiff
path: root/lib/custodian/parser.rb
diff options
context:
space:
mode:
authorSteve Kemp <steve@steve.org.uk>2012-11-17 15:32:41 +0000
committerSteve Kemp <steve@steve.org.uk>2012-11-17 15:32:41 +0000
commitbac589cdf4f85d1228cb4528094206b666a44c24 (patch)
tree90d3d6c0aa52de5d91b1d86113258f5e2c7d9430 /lib/custodian/parser.rb
parent05cf090d7b9624aec885af0d021ce03fc508ef4d (diff)
Parse the banner.
Diffstat (limited to 'lib/custodian/parser.rb')
-rw-r--r--lib/custodian/parser.rb8
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/custodian/parser.rb b/lib/custodian/parser.rb
index 6407621..fb62e13 100644
--- a/lib/custodian/parser.rb
+++ b/lib/custodian/parser.rb
@@ -384,6 +384,14 @@ class MonitorConfig
#
+ # TCP-tests will include a banner, optionally
+ #
+ if ( line =~ /\s+with\s+banner\s+'([^']+)'/ )
+ test[:banner]=$1.dup
+ end
+
+
+ #
# HTTP-tests will include the expected result in one of two forms:
#
# must run http with status 200