test: skip flaky terminal integration tests

This commit is contained in:
deepak1556 2024-05-07 23:09:17 +09:00
parent ceae19b881
commit c768f4d6a7
2 changed files with 5 additions and 4 deletions

View file

@ -10,7 +10,7 @@ import { assertNoRpc } from '../utils';
// Terminal integration tests are disabled on web https://github.com/microsoft/vscode/issues/92826
// Windows images will often not have functional shell integration
(env.uiKind === UIKind.Web || platform() === 'win32' ? suite.skip : suite)('vscode API - Terminal.shellIntegration', () => {
(env.uiKind === UIKind.Web || platform() !== 'darwin' ? suite.skip : suite)('vscode API - Terminal.shellIntegration', () => {
const disposables: Disposable[] = [];
suiteSetup(async () => {

View file

@ -6,6 +6,7 @@
import { deepStrictEqual, doesNotThrow, equal, ok, strictEqual, throws } from 'assert';
import { commands, ConfigurationTarget, Disposable, env, EnvironmentVariableMutator, EnvironmentVariableMutatorOptions, EnvironmentVariableMutatorType, EventEmitter, ExtensionContext, extensions, ExtensionTerminalOptions, Pseudoterminal, Terminal, TerminalDimensions, TerminalExitReason, TerminalOptions, TerminalState, UIKind, Uri, window, workspace } from 'vscode';
import { assertNoRpc, poll } from '../utils';
import { platform } from 'os';
// Disable terminal tests:
// - Web https://github.com/microsoft/vscode/issues/92826
@ -761,7 +762,7 @@ import { assertNoRpc, poll } from '../utils';
});
});
test('should have collection variables apply to environment variables that don\'t exist', async () => {
(platform() === 'linux' ? test.skip : test)('should have collection variables apply to environment variables that don\'t exist', async () => {
// Setup collection and create terminal
const collection = extensionContext.environmentVariableCollection;
disposables.push({ dispose: () => collection.clear() });
@ -806,7 +807,7 @@ import { assertNoRpc, poll } from '../utils';
});
});
test('should respect clearing entries', async () => {
(platform() === 'linux' ? test.skip : test)('should respect clearing entries', async () => {
// Setup collection and create terminal
const collection = extensionContext.environmentVariableCollection;
disposables.push({ dispose: () => collection.clear() });
@ -847,7 +848,7 @@ import { assertNoRpc, poll } from '../utils';
});
});
test('should respect deleting entries', async () => {
(platform() === 'linux' ? test.skip : test)('should respect deleting entries', async () => {
// Setup collection and create terminal
const collection = extensionContext.environmentVariableCollection;
disposables.push({ dispose: () => collection.clear() });