mirror of
https://github.com/google-gemini/gemini-cli.git
synced 2026-04-24 22:55:13 +00:00
fix(infra) - Make file system interactive test check only tool call (#11055)
Co-authored-by: gemini-cli-robot <gemini-cli-robot@google.com>
This commit is contained in:
@@ -628,7 +628,11 @@ export class TestRig {
|
||||
);
|
||||
}
|
||||
|
||||
async expectToolCallSuccess(toolNames: string[], timeout?: number) {
|
||||
async expectToolCallSuccess(
|
||||
toolNames: string[],
|
||||
timeout?: number,
|
||||
matchArgs?: (args: string) => boolean,
|
||||
) {
|
||||
// Use environment-specific timeout
|
||||
if (!timeout) {
|
||||
timeout = getDefaultTimeout();
|
||||
@@ -642,7 +646,10 @@ export class TestRig {
|
||||
const toolLogs = this.readToolLogs();
|
||||
return toolNames.some((name) =>
|
||||
toolLogs.some(
|
||||
(log) => log.toolRequest.name === name && log.toolRequest.success,
|
||||
(log) =>
|
||||
log.toolRequest.name === name &&
|
||||
log.toolRequest.success &&
|
||||
(matchArgs?.call(this, log.toolRequest.args) ?? true),
|
||||
),
|
||||
);
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user