Skip to content

Commit

Permalink
Fix GradleCompilationTest.commandLineArgumentIsIncludedInApoptionsWhe…
Browse files Browse the repository at this point in the history
…nAddedInKspTask failing on Windows

It failed because the output had '\' where '/' was expected.
  • Loading branch information
lukellmann authored and neetopia committed Jul 5, 2023
1 parent dffc6e0 commit 387dd87
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -275,7 +275,7 @@ class GradleCompilationTest {
)
val result = testRule.runner().withDebug(true).withArguments(":app:assembleDebug").build()
val pattern1 = Regex.escape("apoption=room.schemaLocation=")
val pattern2 = Regex.escape("${testRule.appModule.moduleRoot}/schemas-kspDebugKotlin")
val pattern2 = Regex.escape(testRule.appModule.moduleRoot.resolve("schemas-kspDebugKotlin").path)
val pattern3 = Regex.escape("commandLine=[")
assertThat(result.output).containsMatch("$pattern1\\S*$pattern2")
assertThat(result.output).containsMatch("$pattern3\\S*$pattern2")
Expand Down

0 comments on commit 387dd87

Please sign in to comment.