[ImportsDumper] Fix path replacements in tests on Windows
This commit is contained in:
committed by
Space Team
parent
6b343515e1
commit
8436328bb5
+1
-1
@@ -70,6 +70,6 @@ class ImportsDumperTest : TestCaseWithTmpdir() {
|
||||
|
||||
private fun String.relativizeAbsolutePaths(relativeTo: File): String {
|
||||
// JSON escapes slashes
|
||||
val pattern = relativeTo.absoluteFile.toString().replace("/", "\\/")
|
||||
val pattern = relativeTo.absoluteFile.toString().replace(File.separatorChar.toString(), "\\/")
|
||||
return this.replace(pattern, "\$TESTDATA_DIR$")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user