From 17331001a0ac10212097c50797eda287296bf27a Mon Sep 17 00:00:00 2001 From: Tommaso Sciortino Date: Fri, 25 Jul 2025 15:57:30 -0700 Subject: Run presubmit tests in windows as well as linux. (#4672) Co-authored-by: matt korwel --- packages/core/src/tools/shell.test.ts | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'packages/core/src/tools') diff --git a/packages/core/src/tools/shell.test.ts b/packages/core/src/tools/shell.test.ts index b0c7d317..460c871a 100644 --- a/packages/core/src/tools/shell.test.ts +++ b/packages/core/src/tools/shell.test.ts @@ -142,11 +142,9 @@ describe('ShellTool Bug Reproduction', () => { shellTool = new ShellTool(config); const abortSignal = new AbortController().signal; - const result = await shellTool.execute( - { command: 'echo "$GEMINI_CLI"' }, - abortSignal, - () => {}, - ); + const command = + os.platform() === 'win32' ? 'echo %GEMINI_CLI%' : 'echo "$GEMINI_CLI"'; + const result = await shellTool.execute({ command }, abortSignal, () => {}); expect(result.returnDisplay).toBe('1' + os.EOL); }); -- cgit v1.2.3