changeset 307:2951b845259c

Runners: at the end, print out only interesting results with verbose mode
author shade
date Wed, 20 Jul 2016 12:07:45 +0300
parents d05bb19014cd
children 6faec60f9c90
files jcstress-core/src/main/java/org/openjdk/jcstress/infra/grading/HTMLReportPrinter.java
diffstat 1 files changed, 4 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/jcstress-core/src/main/java/org/openjdk/jcstress/infra/grading/HTMLReportPrinter.java	Tue Jul 12 00:19:01 2016 +0300
+++ b/jcstress-core/src/main/java/org/openjdk/jcstress/infra/grading/HTMLReportPrinter.java	Wed Jul 20 12:07:45 2016 +0300
@@ -203,7 +203,10 @@
         if (verbose) {
             List<TestResult> byConfig = ReportUtils.mergedByConfig(collector.getTestResults());
             for (TestResult result : byConfig) {
-                printer.add(result);
+                TestGrading grading = TestGrading.grade(result);
+                if (!grading.isPassed || grading.hasInteresting) {
+                    printer.add(result);
+                }
             }
         }
     }