This commit is contained in:
Ahmed Ibrahim
2025-07-19 23:35:14 -07:00
parent c8c269e52c
commit 36a7427983
2 changed files with 5 additions and 5 deletions

View File

@@ -51,7 +51,7 @@ async fn chat_mode_stream_cli() {
"model_providers.mock={{ name = \"mock\", base_url = \"{}/v1\", env_key = \"PATH\", wire_api = \"chat\" }}",
server.uri()
);
let mut cmd = Command::cargo_bin("codex-cli").unwrap();
let mut cmd = Command::cargo_bin("codex").unwrap();
cmd.arg("exec")
.arg("--skip-git-repo-check")
.arg("-c")
@@ -96,7 +96,7 @@ async fn responses_api_stream_cli() {
std::path::Path::new(env!("CARGO_MANIFEST_DIR")).join("tests/cli_responses_fixture.sse");
let home = TempDir::new().unwrap();
let mut cmd = Command::cargo_bin("codex-cli").unwrap();
let mut cmd = Command::cargo_bin("codex").unwrap();
cmd.arg("exec")
.arg("--skip-git-repo-check")
.arg("-C")
@@ -137,7 +137,7 @@ async fn integration_creates_and_checks_session_file() {
// 4. Run the codex CLI through cargo (ensures the right bin is built) and invoke `exec`,
// which is what records a session.
let mut cmd = Command::cargo_bin("codex-cli").unwrap();
let mut cmd = Command::cargo_bin("codex").unwrap();
cmd.arg("exec")
.arg("--skip-git-repo-check")
.arg("-C")
@@ -312,7 +312,7 @@ async fn integration_creates_and_checks_session_file() {
// to sidestep the issue.
let resume_path_str = path.to_string_lossy().replace('\\', "/");
let resume_override = format!("experimental_resume=\"{resume_path_str}\"");
let mut cmd2 = Command::cargo_bin("codex-cli").unwrap();
let mut cmd2 = Command::cargo_bin("codex").unwrap();
cmd2.arg("exec")
.arg("--skip-git-repo-check")
.arg("-c")

View File

@@ -30,7 +30,7 @@ fn run_live(prompt: &str) -> (assert_cmd::assert::Assert, TempDir) {
// implementation). Instead we configure the std `Command` ourselves, then later hand the
// resulting `Output` to `assert_cmd` for the familiar assertions.
let mut cmd = Command::cargo_bin("codex-cli").unwrap();
let mut cmd = Command::cargo_bin("codex").unwrap();
cmd.current_dir(dir.path());
cmd.env("OPENAI_API_KEY", require_api_key());