From 57597e2a39673853f3cb8986b15fa975aec8f618 Mon Sep 17 00:00:00 2001 From: "Alexander.Glukhov" Date: Mon, 22 Sep 2025 11:54:26 +0200 Subject: [PATCH] [maven][wsl][test] fix `ScriptMavenExecutionTest` execution on WSL GitOrigin-RevId: eba908c7e642facc3c077b393b543d8413bb1a2c --- .../idea/maven/execution/ScriptMavenExecutionTest.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/maven/src/test/java/org/jetbrains/idea/maven/execution/ScriptMavenExecutionTest.kt b/plugins/maven/src/test/java/org/jetbrains/idea/maven/execution/ScriptMavenExecutionTest.kt index 4cb1b70f7d7a..0400950c326d 100644 --- a/plugins/maven/src/test/java/org/jetbrains/idea/maven/execution/ScriptMavenExecutionTest.kt +++ b/plugins/maven/src/test/java/org/jetbrains/idea/maven/execution/ScriptMavenExecutionTest.kt @@ -66,7 +66,7 @@ class ScriptMavenExecutionTest : MavenExecutionTest() { private fun createFakeProjectWrapper() { createProjectSubFile(".mvn/wrapper/maven-wrapper.properties", "distributionUrl=http://example.com") - if (SystemInfo.isWindows) { + if (EelOsFamily.Windows == project.getEelDescriptor().osFamily) { createProjectSubFile("mvnw.cmd", "@echo $wrapperOutput\r\n@echo %*\r\n@set") } else { @@ -258,7 +258,7 @@ class ScriptMavenExecutionTest : MavenExecutionTest() { assertTrue("Should pass env variables in run configuration, but stdout: ${executionInfo.stdout}", mavenOptsLineStarts != -1) val mavenOptsLineEnd = executionInfo.stdout.indexOf("\n", mavenOptsLineStarts) val mavenOptsLine = executionInfo.stdout.substring(mavenOptsLineStarts, mavenOptsLineEnd) - assertTrue("MAVEN_OPTS should contain parameters, but was ${mavenOptsLine}", mavenOptsLine.contains("$option")) + assertTrue("MAVEN_OPTS should contain parameters, but was ${mavenOptsLine}", mavenOptsLine.contains(option)) } @Test