Commit ae0700ef authored by Andy Wilkinson's avatar Andy Wilkinson

Try to make RunningDocumentationTests platform independent

Windows seems unable to decide if the temp dir is in System32 or
system32 which breaks the comparison. This commit attempts to appease
the gods of case sensitity by reducing the portion of the path that we
check so that system32 vs System32 doesn't come into it.

See gh-8920
parent 079b324e
......@@ -55,9 +55,8 @@ public class RunningDocumentationTests {
public void bootRunSourceResources() throws IOException {
assertThat(this.gradleBuild
.script("src/main/gradle/running/boot-run-source-resources.gradle")
.build("configuredClasspath").getOutput()).contains(
new File(this.gradleBuild.getProjectDir(), "src/main/resources")
.getAbsolutePath());
.build("configuredClasspath").getOutput())
.contains(new File("src/main/resources").getPath());
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment