From 78a461e4acf10733f22f06afbecd302ddbc83a78 Mon Sep 17 00:00:00 2001 From: Steve Kemp Date: Thu, 22 Jan 2015 11:22:04 +0000 Subject: Allow inverted tests for MX. (i.e. "pxe.io must not run mx otherwise 'no mail for steve'.") --- lib/custodian/protocoltest/mx.rb | 7 +++++++ 1 file changed, 7 insertions(+) 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 -- cgit v1.2.1