mirror of
https://github.com/zeek/zeek.git
synced 2025-10-13 12:08:20 +00:00
Improve reliability of the logging rotate.bro test
Occasionally a few lines in the first part of the output file were not in the expected order (this seems to be caused by each line in the output being created by a process that is run in the background but bro doesn't wait for it to finish). Fixed by sorting the output.
This commit is contained in:
parent
e16cc13667
commit
6600556f51
1 changed files with 2 additions and 1 deletions
|
@ -1,5 +1,6 @@
|
|||
#
|
||||
# @TEST-EXEC: bro -b -r ${TRACES}/rotation.trace %INPUT 2>&1 | grep "test" >out
|
||||
# @TEST-EXEC: bro -b -r ${TRACES}/rotation.trace %INPUT >bro.out 2>&1
|
||||
# @TEST-EXEC: grep "test" bro.out | sort >out
|
||||
# @TEST-EXEC: for i in `ls test.*.log | sort`; do printf '> %s\n' $i; cat $i; done >>out
|
||||
# @TEST-EXEC: btest-diff out
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue