Tests - eventscripts - new function setup_nmap_output_filter()
authorMartin Schwenke <martin@meltin.net>
Mon, 22 Aug 2011 06:00:52 +0000 (16:00 +1000)
committerMartin Schwenke <martin@meltin.net>
Tue, 30 Aug 2011 06:51:55 +0000 (16:51 +1000)
Signed-off-by: Martin Schwenke <martin@meltin.net>
tests/eventscripts/common.sh

index 0c605e7f4582f1fcc963ac758e3f10de9151d265..1a83811caee4b7c12981158e040453e8b4477c53 100644 (file)
@@ -177,6 +177,11 @@ ethtool_interfaces_up ()
     done
 }
 
+setup_nmap_output_filter ()
+{
+    OUT_FILTER="-e 's@^(DEBUG: # Nmap 5.21 scan initiated) .+ (as:)@\1 DATE \2@' -e 's@^(DEBUG: # Nmap done at) .+ (--)@\1 DATE \2@'"
+}
+
 ######################################################################
 
 # CTDB fakery