Skip to content

Commit

Permalink
make smoke test use pwsh
Browse files Browse the repository at this point in the history
  • Loading branch information
anthonykim1 committed Oct 31, 2024
1 parent 1435329 commit 12f7b3e
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion src/test/smokeTest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

// Must always be on top to setup expected env.
process.env.VSC_PYTHON_SMOKE_TEST = '1';

import * as vscode from 'vscode';
import { spawn } from 'child_process';
import * as fs from '../client/common/platform/fs-paths';
import * as glob from 'glob';
Expand Down Expand Up @@ -47,6 +47,19 @@ class TestRunner {
);
}
private async launchTest(customEnvVars: Record<string, {}>) {
const configurationTerminal = vscode.workspace.getConfiguration('terminal');
await configurationTerminal.update('integrated.defaultProfile.osx', 'pwsh', vscode.ConfigurationTarget.Global);
await configurationTerminal.update(
'integrated.defaultProfile.linux',
'pwsh',
vscode.ConfigurationTarget.Global,
);
await configurationTerminal.update(
'integrated.defaultProfile.windows',
'pwsh',
vscode.ConfigurationTarget.Global,
);

console.log('Launch tests in test runner');
await new Promise<void>((resolve, reject) => {
const env: Record<string, string> = {
Expand Down

0 comments on commit 12f7b3e

Please sign in to comment.