Skip to content

Commit 12f7b3e

Browse files
committed
make smoke test use pwsh
1 parent 1435329 commit 12f7b3e

File tree

1 file changed

+14
-1
lines changed

1 file changed

+14
-1
lines changed

src/test/smokeTest.ts

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
// Must always be on top to setup expected env.
77
process.env.VSC_PYTHON_SMOKE_TEST = '1';
8-
8+
import * as vscode from 'vscode';
99
import { spawn } from 'child_process';
1010
import * as fs from '../client/common/platform/fs-paths';
1111
import * as glob from 'glob';
@@ -47,6 +47,19 @@ class TestRunner {
4747
);
4848
}
4949
private async launchTest(customEnvVars: Record<string, {}>) {
50+
const configurationTerminal = vscode.workspace.getConfiguration('terminal');
51+
await configurationTerminal.update('integrated.defaultProfile.osx', 'pwsh', vscode.ConfigurationTarget.Global);
52+
await configurationTerminal.update(
53+
'integrated.defaultProfile.linux',
54+
'pwsh',
55+
vscode.ConfigurationTarget.Global,
56+
);
57+
await configurationTerminal.update(
58+
'integrated.defaultProfile.windows',
59+
'pwsh',
60+
vscode.ConfigurationTarget.Global,
61+
);
62+
5063
console.log('Launch tests in test runner');
5164
await new Promise<void>((resolve, reject) => {
5265
const env: Record<string, string> = {

0 commit comments

Comments
 (0)