mirror of
https://github.com/stablyai/orca.git
synced 2026-10-02 08:02:02 +00:00
test(windows): invoke quoted retention fixture via PowerShell
This commit is contained in:
@@ -97,7 +97,8 @@ function shellQuote(value: string): string {
|
||||
export function retentionFixtureCommand(fixturePath: string, sinkPath: string): string {
|
||||
const command = [process.execPath, fixturePath, sinkPath]
|
||||
return process.platform === 'win32'
|
||||
? command.map((value) => `"${value.replaceAll('"', '""')}"`).join(' ')
|
||||
? // PowerShell needs the call operator when the executable is quoted; cmd.exe also accepts it.
|
||||
`& ${command.map((value) => `"${value.replaceAll('"', '""')}"`).join(' ')}`
|
||||
: command.map(shellQuote).join(' ')
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user