don't display the . and .. files when dumping the log/ contents
This commit is contained in:
@@ -1548,8 +1548,8 @@ sub displaylogs {
|
|||||||
|
|
||||||
print "== Contents of files in the log/ dir after test $testnum\n";
|
print "== Contents of files in the log/ dir after test $testnum\n";
|
||||||
foreach $log (sort @logs) {
|
foreach $log (sort @logs) {
|
||||||
# the log file contains more than zero bytes
|
# the log file is not "." or ".." and contains more than zero bytes
|
||||||
if(-s "$LOGDIR/$log") {
|
if(($log !~ /\.(\.|)$/) && -s "$LOGDIR/$log") {
|
||||||
print "== Start of file $log\n";
|
print "== Start of file $log\n";
|
||||||
displaylogcontent("$LOGDIR/$log");
|
displaylogcontent("$LOGDIR/$log");
|
||||||
print "== End of file $log\n";
|
print "== End of file $log\n";
|
||||||
|
|||||||
Reference in New Issue
Block a user