Fix regular expressions in testHostSpecificSourceSetsInTransitiveDependencies

Test is now flaky because sometimes the expected names has checksum with
the `-` char.
`published-dependency-1.0-commonMain-Q-PvLQ.klib`
This commit is contained in:
Nikolay Krasko
2022-09-26 14:10:37 +02:00
committed by teamcity
parent 20fdd50cc0
commit 8af5ade2f4
@@ -92,10 +92,10 @@ class KlibBasedMppIT : BaseGradleIT() {
checkTaskCompileClasspath(
"compile${hostSpecificSourceSet.replaceFirstChar { if (it.isLowerCase()) it.titlecase(Locale.getDefault()) else it.toString() }}KotlinMetadata",
listOf(
"published-producer-1.0-$hostSpecificSourceSet-\\w+.klib",
"published-producer-1.0-commonMain-\\w+.klib",
"published-dependency-1.0-$hostSpecificSourceSet-\\w+.klib",
"published-dependency-1.0-commonMain-\\w+.klib"
"published-producer-1.0-$hostSpecificSourceSet-[\\w-]+.klib",
"published-producer-1.0-commonMain-[\\w-]+.klib",
"published-dependency-1.0-$hostSpecificSourceSet-[\\w-]+.klib",
"published-dependency-1.0-commonMain-[\\w-]+.klib"
).map(::Regex)
)
}