File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed
wasm/wasm.tests/testFixtures/org/jetbrains/kotlin/wasm/test/handlers Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -113,11 +113,12 @@ fun TestServices.getWasmTestOutputDirectory(): File {
113
113
val pathToTestDir = allDirectives[WasmEnvironmentConfigurationDirectives .PATH_TO_TEST_DIR ].first()
114
114
115
115
val testGroupOutputDir = File (File (pathToRootOutputDir, " out" ), testGroupDirPrefix)
116
- val stopFile = File (pathToTestDir)
117
- val fullPathSequence = generateSequence(originalFile.parentFile) { it.parentFile }.toList()
116
+ val stopFile = File (pathToTestDir).absoluteFile
117
+ val parentAbsoluteFile = originalFile.parentFile.absoluteFile
118
+ val fullPathSequence = generateSequence(parentAbsoluteFile) { it.parentFile }.toList()
118
119
val suffixPathSequence = fullPathSequence.takeWhile { it != stopFile }
119
120
require(suffixPathSequence.size < fullPathSequence.size) {
120
- " Folder $stopFile (which is set by PATH_TO_TEST_DIR directive) must contain ${originalFile.parentFile.absoluteFile} "
121
+ " Folder $stopFile (which is set by PATH_TO_TEST_DIR directive) must contain $parentAbsoluteFile "
121
122
}
122
123
return suffixPathSequence
123
124
.map { it.name }
You can’t perform that action at this time.
0 commit comments