Skip to content

Commit 0b25779

Browse files
committed
Save screenshot to Surefire directory if any
eclipse-platform/eclipse.platform.swt#3303 SWT does not use Platform, so existing heuristics do not work in GitHub Actions.
1 parent 3306df2 commit 0b25779

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

  • eclipse.platform.releng/bundles/org.eclipse.test/src/org/eclipse/test

eclipse.platform.releng/bundles/org.eclipse.test/src/org/eclipse/test/Screenshots.java

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -139,6 +139,12 @@ private static File getJunitReportOutput() {
139139
}
140140
}
141141
}
142+
File result = new File("target", "surefire-reports");
143+
if (result.isDirectory()) {
144+
return result;
145+
} else {
146+
System.err.println(result + " is not a directory");
147+
}
142148
return null;
143149
}
144150

0 commit comments

Comments
 (0)