Skip to content

Commit

Permalink
Fix GraalVmStarterTests on CI
Browse files Browse the repository at this point in the history
(cherry picked from commit 975eb5a)
  • Loading branch information
marcphilipp committed Jun 17, 2024
1 parent ff486cf commit 43ddd64
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ org.gradle.jvmargs=-Xmx1g -XX:MaxMetaspaceSize=512m -XX:+HeapDumpOnOutOfMemoryEr
--add-exports jdk.compiler/com.sun.tools.javac.util=ALL-UNNAMED
org.gradle.caching=true
org.gradle.parallel=true
org.gradle.java.installations.fromEnv=JDK8,JDK18,JDK19,JDK20,JDK21,JDK22
org.gradle.java.installations.fromEnv=JDK8,JDK18,JDK19,JDK20,JDK21,JDK22,GRAALVM_HOME
org.gradle.kotlin.dsl.allWarningsAsErrors=true

# Test Distribution
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,8 @@ void runsTestsInNativeImage() {
assertFalse(result.isTimedOut(), () -> "tool timed out: " + result);

assumeFalse(
result.getOutputLines("err").stream().anyMatch(line -> line.contains("No matching toolchains found")),
result.getOutputLines("err").stream().anyMatch(
line -> line.contains("No locally installed toolchains match")),
"Abort test if GraalVM is not installed");

assertEquals(0, result.getExitCode());
Expand Down

0 comments on commit 43ddd64

Please sign in to comment.