Commit Graph

6 Commits

Author SHA1 Message Date
a9f7e3e9ab tests: pass the no-game Python tests on Windows with a non-ASCII profile path
Five tests that only the Linux CI runs fail on Windows:

- test_report_paths: the darwin patch kept Windows' os.path.normcase,
  which lowercases; use posixpath.normcase there too.
- test_audio_wav, test_audio_stage_resume: cmd.exe decodes the fake
  ffmpeg.cmd with the OEM code page, not UTF-8; write non-ASCII paths as
  their 8.3 short names, the file in the OEM code page.
- test_make_game_submodule, tools/spirv_metal_set0.py: text=True decodes
  UTF-8 child output with the ANSI code page and the reader thread dies;
  errors="replace".
- test_spirv_metal_set0_cli_errors: read the Python child's stderr in the
  locale encoding it writes, not UTF-8.

AI-assisted (Claude Code).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 22:01:03 +03:00
1216bc3b85 Merge pull request #523 from Capital 2026-11-21 19:53:07 -05:00
e1cc07c438 Isolate submodule tests from Git hook settings
Use Git's list of repository-local environment variables to keep inherited
hook settings out of temporary repositories. Add a linked-worktree test
that inherits a parent repository's Git directory, worktree and index.
2026-11-22 01:08:09 +01:00
aeff5917d0 fix(tests): replace enterContext with addCleanup in test_make_game_submodule 2026-11-22 00:58:18 +01:00
11c13f552e Isolate Git environment in Windows submodule tests
Pass a fixture-specific environment to Git subprocesses so test cleanup
preserves inherited empty Git config values on Windows.
2026-11-22 00:22:59 +01:00
3008b3fd0d fix: initialize submodules in linked Git worktrees 2026-11-21 22:09:32 +03:00