diff options
Diffstat (limited to 'plugins/base/src/test/kotlin/expect/ExpectUtils.kt')
-rw-r--r-- | plugins/base/src/test/kotlin/expect/ExpectUtils.kt | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/base/src/test/kotlin/expect/ExpectUtils.kt b/plugins/base/src/test/kotlin/expect/ExpectUtils.kt index 4ea46dda..1f54c20e 100644 --- a/plugins/base/src/test/kotlin/expect/ExpectUtils.kt +++ b/plugins/base/src/test/kotlin/expect/ExpectUtils.kt @@ -8,7 +8,7 @@ import kotlin.streams.toList data class ProcessResult(val code: Int, val out: String, val err: String? = null) internal fun Path.dirsWithFormats(formats: List<String>): List<Pair<Path, String>> = - Files.list(this).toList().flatMap { p -> formats.map { p to it } } + Files.list(this).toList().filter { Files.isDirectory(it) }.flatMap { p -> formats.map { p to it } } internal fun Path.asString() = normalize().toString() internal fun Path.deleteRecursively() = toFile().deleteRecursively() |