Normalize line endings in SkSL error tests

On Windows, the process output contains CRLF sequences. Calling
splitlines() recognizes those (Python universal line endings), so we get
a list of the output lines. Joining those with '\n' produces a string
that just has LF. (We add another one, so we still end the file with a
newline). Because we've opened the file in binary mode, the resulting
files now look the same, regardless of OS.

Change-Id: I1f032aa6e0f82057f593c25ce0676983733b9e56
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/317105
Reviewed-by: John Stiles <johnstiles@google.com>
Commit-Queue: Brian Osman <brianosman@google.com>
diff --git a/gn/compile_sksl_tests.py b/gn/compile_sksl_tests.py
index 36b9cae..e630757 100755
--- a/gn/compile_sksl_tests.py
+++ b/gn/compile_sksl_tests.py
@@ -24,7 +24,8 @@
     except subprocess.CalledProcessError as err:
         with open(target, 'wb') as dst:
             dst.write("### Compilation failed:\n\n")
-            dst.write(err.output)
+            dst.write("\n".join(err.output.splitlines()))
+            dst.write("\n")
         return False
 
 skslc = sys.argv[1]