Skip to content

Commit

Permalink
debug github build
Browse files Browse the repository at this point in the history
  • Loading branch information
yliuuuu committed Nov 3, 2023
1 parent 0be92cb commit 6b0edf0
Showing 1 changed file with 29 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,35 @@ class PartiQLTestProvider {
val dir = try {
(root ?: default).toFile()
} catch (e: UnsupportedOperationException) {
// for Github Build
val absolutePath = (root ?: default).toAbsolutePath()
File(absolutePath.toUri())
// for GitHub Build
val path = root ?: default
val absolutePath = path.toAbsolutePath()
val URIFromPath = try { path.toUri() } catch (e: Exception) { null }
val URIFromAbsolutePath = try { absolutePath.toUri() } catch (e: Exception) { null }
val fileFromURI = try {
if (URIFromPath != null) {
File(URIFromPath).name
} else {
null
}
} catch (e: Exception) { null }
val fileFromURIAbsolute = try {
if (URIFromAbsolutePath != null) {
File(URIFromAbsolutePath).name
} else {
null
}
} catch (e: Exception) { null }
throw InternalError(
"""
path: $path,
absolutePath: $path,
URIFromPath: $URIFromPath,
URIFromAbsolutePath : $URIFromAbsolutePath,
fileFromURI: $fileFromURI,
fileFromURIAbsolute: $fileFromURIAbsolute
""".trimIndent()
)
}
dir.listFiles { f -> f.isDirectory }!!.map {
for (test in load(it)) {
Expand Down

0 comments on commit 6b0edf0

Please sign in to comment.