2 # SPDX-License-Identifier: GPL-2.0
6 $max_printed_lines = 20;
7 $max_printed_lines = $ENV{TESTLOG_ERR_MSG_MAX_LINES
} if (defined $ENV{TESTLOG_ERR_MSG_MAX_LINES
});
10 $quiet = 0 if (defined $ENV{TESTLOG_VERBOSITY
} && $ENV{TESTLOG_VERBOSITY
} ge 2);
29 unless ($line_matched)
31 if ($lines_printed++ < $max_printed_lines)
33 print "Line did not match any pattern: \"$_\"\n" unless $quiet;