summaryrefslogtreecommitdiff
path: root/lib
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
commit78a461e4acf10733f22f06afbecd302ddbc83a78 (patch)
tree614a1aeb52eef08d6de7449fd5e32d8a8933da9e /lib
parent16686166649e55412c8486397506cb1a53898832 (diff)
Allow inverted tests for MX.
(i.e. "pxe.io must not run mx otherwise 'no mail for steve'.")
Diffstat (limited to 'lib')
-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