summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSteve Kemp <steve@steve.org.uk>2015-01-22 11:22:04 +0000
committerSteve Kemp <steve@steve.org.uk>2015-01-22 11:22:04 +0000
commit92a7254c4fb523c9b7737e02d4303f3101a9f410 (patch)
tree28b603c5919bb6754794a41b8e223faac13d15bc
parentbe71dd540772013e84d980d54edcad66dd90a744 (diff)
Allow inverted tests for MX.
(i.e. "pxe.io must not run mx otherwise 'no mail for steve'.")
-rw-r--r--lib/custodian/protocoltest/mx.rb7
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/custodian/protocoltest/mx.rb b/lib/custodian/protocoltest/mx.rb
index 8b415ec..8f260f9 100644
--- a/lib/custodian/protocoltest/mx.rb
+++ b/lib/custodian/protocoltest/mx.rb
@@ -27,6 +27,13 @@ module Custodian
# The main domain we're querying
@host = line.split(/\s+/)[0]
+
+ if ( line =~ /must\s+not\s+run\s+/ )
+ @inverted = true
+ else
+ @inverted = false
+ end
+
end