Commit 9583b51d authored by Yang Tse's avatar Yang Tse
Browse files

In case of test failure, try not to show log files of other tests

parent 67027396
Loading
Loading
Loading
Loading
+3 −0
Original line number Original line Diff line number Diff line
@@ -2542,6 +2542,9 @@ sub displaylogs {
        if(($log =~ /^test\d+\.txt/) && ($log !~ /^test$testnum\.txt/)) {
        if(($log =~ /^test\d+\.txt/) && ($log !~ /^test$testnum\.txt/)) {
            next; # skip testNnn.txt of other tests
            next; # skip testNnn.txt of other tests
        }
        }
        if(($log =~ /^file\d+\.txt/) && ($log !~ /^file$testnum\.txt/)) {
            next; # skip fileNnn.txt of other tests
        }
        logmsg "=== Start of file $log\n";
        logmsg "=== Start of file $log\n";
        displaylogcontent("$LOGDIR/$log");
        displaylogcontent("$LOGDIR/$log");
        logmsg "=== End of file $log\n";
        logmsg "=== End of file $log\n";