]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
don't display the . and .. files when dumping the log/ contents
authorDaniel Stenberg <daniel@haxx.se>
Fri, 16 Apr 2004 07:02:17 +0000 (07:02 +0000)
committerDaniel Stenberg <daniel@haxx.se>
Fri, 16 Apr 2004 07:02:17 +0000 (07:02 +0000)
tests/runtests.pl

index 6e8d5368e9981afbd23aae0ad7469c52070ff597..a2af5c94455a296d4e24c165b05c9bd1cad0a756 100755 (executable)
@@ -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";