summaryrefslogtreecommitdiff
path: root/packages/core/src/tools/shell.test.ts
diff options
context:
space:
mode:
authorTommaso Sciortino <[email protected]>2025-07-25 15:57:30 -0700
committerGitHub <[email protected]>2025-07-25 15:57:30 -0700
commit17331001a0ac10212097c50797eda287296bf27a (patch)
tree5854b23caa665f4567223f951758dfed71788fac /packages/core/src/tools/shell.test.ts
parentfbdc8d5ab3f76aef32af6a8f516d97771c56a7ac (diff)
Run presubmit tests in windows as well as linux. (#4672)
Co-authored-by: matt korwel <[email protected]>
Diffstat (limited to 'packages/core/src/tools/shell.test.ts')
-rw-r--r--packages/core/src/tools/shell.test.ts8
1 files changed, 3 insertions, 5 deletions
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);
});