Skip to content

Commit 9aee79e

Browse files
committed
Don't print debug info when building on Windows
Disable AST logging when running on Windows since it seems to overwhelm surefure. Closes gh-95
1 parent d8ce642 commit 9aee79e

File tree

1 file changed

+6
-1
lines changed
  • spring-javaformat/spring-javaformat-checkstyle/src/test/java/io/spring/javaformat/checkstyle

1 file changed

+6
-1
lines changed

spring-javaformat/spring-javaformat-checkstyle/src/test/java/io/spring/javaformat/checkstyle/SpringChecksTests.java

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,9 @@
5353
@RunWith(Parameterized.class)
5454
public class SpringChecksTests {
5555

56+
private static final boolean RUNNING_ON_WINDOWS = System.getProperty("os.name")
57+
.toLowerCase().contains("win");
58+
5659
private static final File SOURCES_DIR = new File("src/test/resources/source");
5760

5861
private static final File CHECKS_DIR = new File("src/test/resources/check");
@@ -106,7 +109,9 @@ private RootModule createRootModule(Configuration configuration)
106109
private void processAndCheckResults(RootModule rootModule)
107110
throws CheckstyleException {
108111
rootModule.addListener(this.parameter.getAssersionsListener());
109-
printDebugInfo(this.parameter.getSourceFile());
112+
if (!RUNNING_ON_WINDOWS) {
113+
printDebugInfo(this.parameter.getSourceFile());
114+
}
110115
rootModule.process(Arrays.asList(this.parameter.getSourceFile()));
111116
}
112117

0 commit comments

Comments
 (0)