Skip to content

Commit d3baf8f

Browse files
committed
update test path
1 parent 2048278 commit d3baf8f

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

test/org/lwjgl/opengl/awt/CompareScreenshotTest.java

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -297,8 +297,11 @@ public void run() {
297297
screenShotSuffix = "_" + screenShotIndex;
298298
}
299299

300+
File outputDir = new File("build/test-screenshots");
301+
outputDir.mkdirs();
302+
300303
ImageIO.write(background, "png", new File(
301-
new File("target"),
304+
outputDir,
302305
System.getProperty("os.name") + "_" +
303306
testInfo.getTestClass().map(Class::getSimpleName).orElse("unknown") + "_" +
304307
testInfo.getTestMethod().map(Method::getName).orElse("unknown") + screenShotSuffix + ".png"));
@@ -312,7 +315,7 @@ public void run() {
312315
testInfo.getTestMethod().map(Method::getName).orElse("unknown") + screenShotSuffix + ".png"));
313316

314317
File resultDestination = new File(
315-
new File("target"),
318+
outputDir,
316319
System.getProperty("os.name") + "_" +
317320
testInfo.getTestClass().map(Class::getSimpleName).orElse("unknown") + "_" +
318321
testInfo.getTestMethod().map(Method::getName).orElse("unknown") + screenShotSuffix + "_diff.png");

0 commit comments

Comments
 (0)