Skip to content

Commit

Permalink
Fix pwsh shell integration tests
Browse files Browse the repository at this point in the history
Part of #157083
  • Loading branch information
Tyriar committed Aug 5, 2022
1 parent 4a0555d commit 8eeac1f
Showing 1 changed file with 4 additions and 4 deletions.
Expand Up @@ -25,14 +25,14 @@ suite('platform - terminalEnvironment', () => {

suite('pwsh', () => {
const expectedPs1 = process.platform === 'win32'
? `${repoRoot}\\out\\vs\\workbench\\contrib\\terminal\\browser\\media\\shellIntegration.ps1`
: `${repoRoot}/out/vs/workbench/contrib/terminal/browser/media/shellIntegration.ps1`;
? `try { . "${repoRoot}\\out\\vs\\workbench\\contrib\\terminal\\browser\\media\\shellIntegration.ps1" } catch {}`
: `. "${repoRoot}/out/vs/workbench/contrib/terminal/browser/media/shellIntegration.ps1"`;
suite('should override args', () => {
const enabledExpectedResult = Object.freeze<IShellIntegrationConfigInjection>({
newArgs: [
'-noexit',
'-command',
`. "${expectedPs1}"`
expectedPs1
],
envMixin: {
VSCODE_INJECTION: '1'
Expand Down Expand Up @@ -63,7 +63,7 @@ suite('platform - terminalEnvironment', () => {
'-l',
'-noexit',
'-command',
`. "${expectedPs1}"`
expectedPs1
],
envMixin: {
VSCODE_INJECTION: '1'
Expand Down

0 comments on commit 8eeac1f

Please sign in to comment.