Build and test on Windows: LF session scripts, '/' in relative paths (#552)

fix: build and test on Windows

- .gitattributes keeps the session's scripts LF under core.autocrlf=true;
  CRLF scripts made every session exit with status 2.
- runtime_inputs.py and the scrub record / log zip use '/' in relative
  paths, which Windows reported with '\' (runtime inputs never matched).
- The read-only-folder scrub test is skipped on Windows, which still
  creates files in a read-only directory.

Co-authored-by: xXJsonDeruloXx <danielhimebauch@gmail.com>
This commit is contained in:
kmnkv1andxXJsonDeruloXx authored and GitHub committed 2026-10-14 13:56:12 -04:00
1 parent 9e1b3c1ac1
commit 60caa85353
5 files changed
+7 -4

No files matched your search

@@ -105,6 +105,7 @@ class SessionLogShareTest {
@Test fun aFileThatCouldNotBeScrubbedLeavesTheFolderUnrecorded() {
val folder = tmp.newFolder("2026-10-06-06-steam")
File(folder, "session.log").writeText("$secret\n")
org.junit.Assume.assumeFalse(System.getProperty("os.name").startsWith("Windows"))
folder.setWritable(false)
try {
SessionArtifacts.scrubAndMark(folder)