diff --git a/tests/e2e/helpers/host-created-terminal-retention-oracle.ts b/tests/e2e/helpers/host-created-terminal-retention-oracle.ts index b7820f668c9..b3c4d8c2d21 100644 --- a/tests/e2e/helpers/host-created-terminal-retention-oracle.ts +++ b/tests/e2e/helpers/host-created-terminal-retention-oracle.ts @@ -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(' ') }