diff options
author | Daniel Stenberg <daniel@haxx.se> | 2004-04-16 07:02:17 +0000 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2004-04-16 07:02:17 +0000 |
commit | 4661cc7403ef0793cef29a1762fca19f114f0744 (patch) | |
tree | f58ab42bd80d634479e5f047e8078aff70f90a76 | |
parent | bc119293950ec371a0536b0ffab35bad11fb4016 (diff) |
don't display the . and .. files when dumping the log/ contents
-rwxr-xr-x | tests/runtests.pl | 4 |
1 files 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"; |