From 166e825eea3c1a920f4d12e34c05a913a39e590a Mon Sep 17 00:00:00 2001 From: Daniel Imms <2193314+Tyriar@users.noreply.github.com> Date: Tue, 21 Oct 2025 06:10:24 -0700 Subject: [PATCH] Make profile tests OS specific --- .../chatAgentTools/test/browser/runInTerminalTool.test.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/vs/workbench/contrib/terminalContrib/chatAgentTools/test/browser/runInTerminalTool.test.ts b/src/vs/workbench/contrib/terminalContrib/chatAgentTools/test/browser/runInTerminalTool.test.ts index 209ab524a10..9a55eabe18f 100644 --- a/src/vs/workbench/contrib/terminalContrib/chatAgentTools/test/browser/runInTerminalTool.test.ts +++ b/src/vs/workbench/contrib/terminalContrib/chatAgentTools/test/browser/runInTerminalTool.test.ts @@ -7,7 +7,7 @@ import { ok, strictEqual } from 'assert'; import { Separator } from '../../../../../../base/common/actions.js'; import { CancellationToken } from '../../../../../../base/common/cancellation.js'; import { Emitter } from '../../../../../../base/common/event.js'; -import { OperatingSystem } from '../../../../../../base/common/platform.js'; +import { isLinux, isWindows, OperatingSystem } from '../../../../../../base/common/platform.js'; import { ensureNoDisposablesAreLeakedInTestSuite } from '../../../../../../base/test/common/utils.js'; import { ConfigurationTarget } from '../../../../../../platform/configuration/common/configuration.js'; import { TestConfigurationService } from '../../../../../../platform/configuration/test/common/testConfigurationService.js'; @@ -988,7 +988,7 @@ suite('TerminalProfileFetcher', () => { } suite('getCopilotProfile', () => { - test('should return custom profile when configured', async () => { + (isWindows ? test : test.skip)('should return custom profile when configured', async () => { testTool.setBackendOs(OperatingSystem.Windows); const customProfile = Object.freeze({ path: 'C:\\Windows\\System32\\powershell.exe', args: ['-NoProfile'] }); setConfig(TerminalChatAgentToolsSettingId.TerminalProfileWindows, customProfile); @@ -997,7 +997,7 @@ suite('TerminalProfileFetcher', () => { strictEqual(result, customProfile); }); - test('should fall back to default shell when no custom profile is configured', async () => { + (isLinux ? test : test.skip)('should fall back to default shell when no custom profile is configured', async () => { testTool.setBackendOs(OperatingSystem.Linux); setConfig(TerminalChatAgentToolsSettingId.TerminalProfileLinux, null);