mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 14:48:21 +00:00
Adding notice_policy.log canonification for external tests.
These was still producing false positives.
This commit is contained in:
parent
077089a047
commit
fb0614b5c6
2 changed files with 12 additions and 0 deletions
10
testing/scripts/diff-canon-notice-policy
Executable file
10
testing/scripts/diff-canon-notice-policy
Executable file
|
@ -0,0 +1,10 @@
|
||||||
|
#! /usr/bin/awk -f
|
||||||
|
#
|
||||||
|
# A diff canonifier that removes the priorities in notice_policy.log.
|
||||||
|
|
||||||
|
/^#/ && $2 == "notice_policy" { filter = 1; }
|
||||||
|
|
||||||
|
filter == 1 && /^[^#]/ { sub("^[0-9]*", "X"); }
|
||||||
|
|
||||||
|
{ print; }
|
||||||
|
|
|
@ -6,4 +6,6 @@
|
||||||
| `dirname $0`/diff-remove-uids \
|
| `dirname $0`/diff-remove-uids \
|
||||||
| `dirname $0`/diff-remove-mime-types \
|
| `dirname $0`/diff-remove-mime-types \
|
||||||
| `dirname $0`/diff-remove-x509-names \
|
| `dirname $0`/diff-remove-x509-names \
|
||||||
|
| `dirname $0`/diff-canon-notice-policy \
|
||||||
| `dirname $0`/diff-sort
|
| `dirname $0`/diff-sort
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue