tests: Document log file normalization a bit better
Signed-off-by: Markus Armbruster <armbru@pond.sub.org>
This commit is contained in:
parent
d0d692e415
commit
df614a9bdc
1 changed files with 4 additions and 2 deletions
|
@ -31,16 +31,18 @@ sub norm_ctime {
|
|||
while (<>) {
|
||||
chomp;
|
||||
|
||||
my $pfx = '';
|
||||
|
||||
# Strip log timestamp
|
||||
if ($opt_j || $opt_s) {
|
||||
die "$0: malformed line" unless /^$ctime_re /;
|
||||
$_ = substr($_, 25);
|
||||
}
|
||||
|
||||
# Split off prefix that is not to be normalized
|
||||
my $pfx = '';
|
||||
if ($opt_j) {
|
||||
die "$0: malformed line" unless substr($_, 10, 1) eq ' ';
|
||||
$pfx .= substr($_, 0, 11);
|
||||
# Normalize only player output
|
||||
$_ = substr($_, 11);
|
||||
if (/(^output [^ ]* 1 )(.*)/) {
|
||||
$pfx .= $1;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue