mirror of
https://github.com/apple/pkl.git
synced 2026-06-12 16:44:33 +02:00
Exclude non-ascii files from windows native snippet tests (#739)
There is an existing bug that is preventing the CLI from loading these files.
This commit is contained in:
@@ -309,12 +309,20 @@ private val windowsExcludedTests
|
|||||||
// error message contains different file path on Windows
|
// error message contains different file path on Windows
|
||||||
Regex(".*missingProjectDeps/bug\\.pkl"),
|
Regex(".*missingProjectDeps/bug\\.pkl"),
|
||||||
// URIs get rendered slightly differently (percent-encoded vs raw)
|
// URIs get rendered slightly differently (percent-encoded vs raw)
|
||||||
Regex(".*日本語_error\\.pkl")
|
Regex(".*日本語_error\\.pkl"),
|
||||||
|
)
|
||||||
|
|
||||||
|
private val windowsNativeExcludedTests
|
||||||
|
get() =
|
||||||
|
listOf(
|
||||||
|
// CLI args on Windows turn into `?` when in native image
|
||||||
|
// https://github.com/oracle/graal/issues/8593
|
||||||
|
Regex(".*日本語\\.pkl")
|
||||||
)
|
)
|
||||||
|
|
||||||
class WindowsLanguageSnippetTestsEngine : AbstractNativeLanguageSnippetTestsEngine() {
|
class WindowsLanguageSnippetTestsEngine : AbstractNativeLanguageSnippetTestsEngine() {
|
||||||
override val pklExecutablePath: Path = PklExecutablePaths.windowsAmd64
|
override val pklExecutablePath: Path = PklExecutablePaths.windowsAmd64
|
||||||
override val testClass: KClass<*> = WindowsLanguageSnippetTests::class
|
override val testClass: KClass<*> = WindowsLanguageSnippetTests::class
|
||||||
override val excludedTests: List<Regex>
|
override val excludedTests: List<Regex>
|
||||||
get() = super.excludedTests + windowsExcludedTests
|
get() = super.excludedTests + windowsNativeExcludedTests + windowsExcludedTests
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user