Fix WSL UNC setup runner casing (#4139)

This commit is contained in:
Neil
2026-05-31 05:47:21 -07:00
committed by GitHub
parent 236b6fd23e
commit 0fd484c75d
2 changed files with 15 additions and 2 deletions
+13
View File
@@ -0,0 +1,13 @@
import { describe, expect, it } from 'vitest'
import { buildSetupRunnerCommand } from './setup-runner-command'
describe('buildSetupRunnerCommand', () => {
it('uses bash for WSL UNC runner scripts regardless of host casing', () => {
expect(
buildSetupRunnerCommand(
'\\\\WSL.LOCALHOST\\Ubuntu\\home\\jin\\repo\\.git\\worktrees\\feature\\orca\\setup-runner.sh',
'windows'
)
).toBe('bash /home/jin/repo/.git/worktrees/feature/orca/setup-runner.sh')
})
})