Skip to content

Commit 6dd0cff

Browse files
committed
Fix tests
1 parent c8fbe27 commit 6dd0cff

File tree

2 files changed

+12
-2
lines changed

2 files changed

+12
-2
lines changed

src/Download.java

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,14 @@ static void main(boolean dryRun, String... args) {
109109
exception.printStackTrace(System.err);
110110
GitHub.error("Error detected: " + exception);
111111
} finally {
112-
outputs.forEach(GitHub::setOutput);
112+
if (dryRun) {
113+
System.out.println("Dry-run of run with " + List.of(args));
114+
for (var output : outputs.entrySet()) {
115+
System.out.println(" - " + output.getKey() + '=' + output.getValue());
116+
}
117+
} else {
118+
outputs.forEach(GitHub::setOutput);
119+
}
113120
}
114121
}
115122

test/Test.java

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@ static void checkAllOracleJDKs() {
3030
System.out.println();
3131
System.out.println("// oracle.com - latest");
3232
checkOracleJDK("19", "latest");
33-
checkOracleJDK("18", "latest");
3433
checkOracleJDK("17", "latest");
3534

3635
System.out.println();
@@ -48,6 +47,10 @@ static void checkAllJavaNetJDKs() {
4847
System.out.println("// jdk.java.net - EA - latest");
4948
checkJavaNetJDK("ea", "latest");
5049

50+
// System.out.println();
51+
// System.out.println("// jdk.java.net - Project Generational ZGC - latest");
52+
// checkJavaNetJDK("genzgc", "latest"); // TODO Activate on macos publication
53+
5154
System.out.println();
5255
System.out.println("// jdk.java.net - Project Loom - latest");
5356
checkJavaNetJDK("loom", "latest");

0 commit comments

Comments
 (0)