mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 14:48:21 +00:00
Fix diff-canonifier-external to use basename of input file
Use basename of the input filename because sometimes it will have directory components, such as for the baseline files.
This commit is contained in:
parent
ac5c4f117f
commit
f3fb2b2f52
1 changed files with 4 additions and 2 deletions
|
@ -2,13 +2,15 @@
|
||||||
#
|
#
|
||||||
# Default canonifier used with the trace-based tests in testing/external/*.
|
# Default canonifier used with the trace-based tests in testing/external/*.
|
||||||
|
|
||||||
|
filename=`basename $1`
|
||||||
|
|
||||||
addl="cat"
|
addl="cat"
|
||||||
|
|
||||||
if [ "$1" == "capture_loss.log" ]; then
|
if [ "$filename" == "capture_loss.log" ]; then
|
||||||
addl="`dirname $0`/diff-remove-fractions"
|
addl="`dirname $0`/diff-remove-fractions"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ "$1" == "ssh.log" ]; then
|
if [ "$filename" == "ssh.log" ]; then
|
||||||
addl="`dirname $0`/diff-remove-fields remote_location"
|
addl="`dirname $0`/diff-remove-fields remote_location"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue