Skip to content

Commit

Permalink
Create a regular profile to work better on CI
Browse files Browse the repository at this point in the history
  • Loading branch information
Tyriar committed Jun 21, 2022
1 parent 0df6031 commit bcb2c6f
Showing 1 changed file with 1 addition and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,6 @@ export function setup() {
await terminal.runCommandWithValue(TerminalCommandIdWithValue.NewWithProfile, process.platform === 'win32' ? 'PowerShell' : 'bash');
}

async function createSimpleProfile() {
await terminal.runCommandWithValue(TerminalCommandIdWithValue.NewWithProfile, process.platform === 'win32' ? 'Command Prompt' : 'sh');
}

// TODO: Some agents may not have pwsh installed?
(process.platform === 'win32' ? describe.skip : describe)(`Process-based tests`, function () {
before(async function () {
Expand Down Expand Up @@ -82,7 +78,7 @@ export function setup() {
});
beforeEach(async function () {
// Create the simplest system profile to get as little process interaction as possible
await createSimpleProfile();
await terminal.createTerminal();
// Erase all content and reset cursor to top
await terminal.runCommandWithValue(TerminalCommandIdWithValue.WriteDataToTerminal, `${csi('2J')}${csi('H')}`);
});
Expand Down

0 comments on commit bcb2c6f

Please sign in to comment.