[Tests] Convert line endings of test files to LF

This fixes a problem on Windows where CRs would end up in the code
leading to parsing problems.
This commit is contained in:
Kirill Rakhman
2023-06-22 17:46:41 +02:00
committed by Space Team
parent 503cd6196c
commit 919d6401f7
@@ -26,7 +26,7 @@ abstract class AdditionalSourceProvider(val testServices: TestServices) : Servic
protected fun File.toTestFile(relativePath: String? = null): TestFile { protected fun File.toTestFile(relativePath: String? = null): TestFile {
return TestFile( return TestFile(
relativePath?.let(Paths::get)?.resolve(name)?.toString() ?: name, relativePath?.let(Paths::get)?.resolve(name)?.toString() ?: name,
this.readText(), this.useLines { it.joinToString("\n") },
originalFile = this, originalFile = this,
startLineNumberInOriginalFile = 0, startLineNumberInOriginalFile = 0,
isAdditional = true, isAdditional = true,