Repository navigation
Scripts: preserve trailing backslashes in native smoke paths - #2721
luckyteagirl wants to merge 1 commit into
Conversation
Escape terminal backslashes before the closing quote for the native launcher. Verify what a real executable receives for paths with spaces and a drive root. Assisted-by: OpenAI Codex (GPT-6.2 Sol)
|
I compared exact heads The change merges cleanly with #2684 at Windows PowerShell 5.1 and PowerShell 7.6.9 on Windows 11. OpenAI Codex (GPT-6) prepared and ran the fixtures. Synthetic logs, reports and immediately exiting launchers only; no game, GPU workload or workspace build. |
For a native
xcl.exelauncher,scripts/smoke.ps1constructs a quotedrunargument. If the-Gamepath ends in a backslash, that backslash escapes the closing quote in Windows argument parsing: the executable receives a trailing"instead of the requested path. Double only the terminal backslashes before the closing quote.What is in it
scripts/smoke.ps1: escape terminal backslashes in the native.exeargument path; keep the separate.cmd/.batlaunch path intact.scripts/smoke-native-arguments.tests.ps1: use a real Python executable as a synthetic launcher and check the exact received path for zero, one, and two terminal backslashes and a drive root.Tested
powershell.exe -NoProfile -File .\scripts\smoke-native-arguments.tests.ps1andpwsh.exe -NoProfile -File .\scripts\smoke-native-arguments.tests.ps1: both passed on this head.scripts/test-smoke-artifacts.tests.ps1andscripts/smoke-title.tests.ps1: each passed in both PowerShell versions (six focused invocations passed in total).git diff HEAD^ HEAD --check: passed.Not tested
PATH.AI use