Fix interpreter files provider to make tests work on windows
This commit is contained in:
committed by
TeamCityServer
parent
5596e1e1e1
commit
61d65436f4
+4
-4
@@ -43,11 +43,11 @@ class IrInterpreterHelpersSourceFilesProvider(testServices: TestServices) : Addi
|
||||
|
||||
private fun getTestFilesForEachDirectory(vararg directories: String): List<TestFile> {
|
||||
return directories.flatMap { directory ->
|
||||
File(directory).walkTopDown().mapNotNull {
|
||||
if (it.isDirectory) return@mapNotNull null
|
||||
if (EXCLUDES.any { excludePath -> it.absolutePath.endsWith(excludePath) }) return@mapNotNull null
|
||||
File(directory).walkTopDown().mapNotNull { file ->
|
||||
if (file.isDirectory) return@mapNotNull null
|
||||
if (EXCLUDES.any { file.absolutePath.endsWith(it.replace('/', File.separatorChar)) }) return@mapNotNull null
|
||||
|
||||
it.toTestFile()
|
||||
file.toTestFile()
|
||||
}.toList()
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user