From 4661cc7403ef0793cef29a1762fca19f114f0744 Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Fri, 16 Apr 2004 07:02:17 +0000 Subject: don't display the . and .. files when dumping the log/ contents --- tests/runtests.pl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/runtests.pl b/tests/runtests.pl index 6e8d5368e..a2af5c944 100755 --- a/tests/runtests.pl +++ b/tests/runtests.pl @@ -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"; -- cgit v1.2.3