Make Windows realtime shell test use successful cmd echo

Use a Windows command form that exits successfully in constrained CI shells and trim the expected newline in the delegated realtime shell-tool assertion.

Co-authored-by: Codex <noreply@openai.com>
This commit is contained in:
starr-openai
2026-05-07 02:23:02 -07:00
parent 865a8b9116
commit bc244dc0ee

View File

@@ -1836,7 +1836,10 @@ async fn webrtc_v2_tool_call_delegated_turn_can_execute_shell_tool() -> Result<(
};
assert_eq!(id.as_str(), "shell_call");
assert_eq!(status, CommandExecutionStatus::Completed);
assert_eq!(aggregated_output.as_deref(), Some("realtime-tool-ok"));
assert_eq!(
aggregated_output.as_deref().map(str::trim),
Some("realtime-tool-ok")
);
// Phase 3: verify the shell output reached Responses and the final delegated answer returned
// to realtime as a single function-call-output item.
@@ -2157,7 +2160,7 @@ fn realtime_tool_ok_command() -> Vec<String> {
"cmd.exe".to_string(),
"/D".to_string(),
"/C".to_string(),
"echo(|set /p dummy=realtime-tool-ok".to_string(),
"echo realtime-tool-ok".to_string(),
]
}