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:
shishu314
2025-10-17 17:25:31 -04:00
committed by GitHub
parent 21163a1636
commit 0b20f88fc0
4 changed files with 19 additions and 12 deletions

View File

@@ -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),
),
);
},