summaryrefslogtreecommitdiff
path: root/lib/custodian/protocoltest/tcp.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/custodian/protocoltest/tcp.rb')
-rw-r--r--lib/custodian/protocoltest/tcp.rb18
1 files changed, 17 insertions, 1 deletions
diff --git a/lib/custodian/protocoltest/tcp.rb b/lib/custodian/protocoltest/tcp.rb
index c14f686..1aa9db4 100644
--- a/lib/custodian/protocoltest/tcp.rb
+++ b/lib/custodian/protocoltest/tcp.rb
@@ -23,7 +23,7 @@ module Custodian
#
- # The input line
+ # The input line from which we were constructed.
#
attr_reader :line
@@ -41,6 +41,12 @@ module Custodian
#
+ # Is this test inverted?
+ #
+ attr_reader :inverted
+
+
+ #
# The banner to look for, may be nil.
#
attr_reader :banner
@@ -65,6 +71,16 @@ module Custodian
#
@host = line.split( /\s+/)[0]
+
+ #
+ # Is this test inverted?
+ #
+ if ( line =~ /must\s+not\s+run\s+/ )
+ @inverted = true
+ else
+ @inverted = false
+ end
+
#
# Save the port
#