Skip to content
Snippets Groups Projects
Commit 4661cc74 authored by Daniel Stenberg's avatar Daniel Stenberg
Browse files

don't display the . and .. files when dumping the log/ contents

parent bc119293
No related branches found
No related tags found
No related merge requests found
......@@ -1548,8 +1548,8 @@ sub displaylogs {
print "== Contents of files in the log/ dir after test $testnum\n";
foreach $log (sort @logs) {
# the log file contains more than zero bytes
if(-s "$LOGDIR/$log") {
# the log file is not "." or ".." and contains more than zero bytes
if(($log !~ /\.(\.|)$/) && -s "$LOGDIR/$log") {
print "== Start of file $log\n";
displaylogcontent("$LOGDIR/$log");
print "== End of file $log\n";
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment