diff options
author | Steve Kemp <steve@steve.org.uk> | 2015-01-22 11:22:04 +0000 |
---|---|---|
committer | Steve Kemp <steve@steve.org.uk> | 2015-01-22 11:22:04 +0000 |
commit | 92a7254c4fb523c9b7737e02d4303f3101a9f410 (patch) | |
tree | 28b603c5919bb6754794a41b8e223faac13d15bc | |
parent | be71dd540772013e84d980d54edcad66dd90a744 (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.rb | 7 |
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 |