mirror of https://github.com/databricks/cli.git
ensure correct newlines for testdata
This commit is contained in:
parent
755b8de2b5
commit
8e1c38ac59
|
@ -26,7 +26,8 @@ func ReadFile(t testutil.TestingT, ctx context.Context, filename string) string
|
|||
return ""
|
||||
}
|
||||
require.NoError(t, err)
|
||||
return string(data)
|
||||
// On CI, on Windows \n in the file somehow end up as \r\n
|
||||
return NormalizeNewlines(string(data))
|
||||
}
|
||||
|
||||
func WriteFile(t testutil.TestingT, ctx context.Context, filename, data string) {
|
||||
|
|
Loading…
Reference in New Issue