From a9796e39c45c12be4e4dab963dd01a3cb672b2d3 Mon Sep 17 00:00:00 2001 From: ningyi-oai Date: Fri, 10 Apr 2026 22:06:59 -0700 Subject: [PATCH] Stabilize marketplace add local source test (#17424) ## Summary - Update the marketplace add local-source integration test to pass an explicit relative local path. - Keep the change test-only; no CLI source parsing behavior changes. ## Tests - cargo fmt -p codex-cli - cargo test -p codex-cli --test marketplace_add ## Impact - Production behavior is unchanged. - No impact to feedback upload logic, DAGs, exports, or downstream pipelines. Co-authored-by: Codex --- codex-rs/cli/tests/marketplace_add.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/codex-rs/cli/tests/marketplace_add.rs b/codex-rs/cli/tests/marketplace_add.rs index 1a9db02d74..9cc5c65a5c 100644 --- a/codex-rs/cli/tests/marketplace_add.rs +++ b/codex-rs/cli/tests/marketplace_add.rs @@ -41,9 +41,12 @@ async fn marketplace_add_rejects_local_directory_source() -> Result<()> { let codex_home = TempDir::new()?; let source = TempDir::new()?; write_marketplace_source(source.path(), "local ref")?; + let source_parent = source.path().parent().unwrap(); + let source_arg = format!("./{}", source.path().file_name().unwrap().to_string_lossy()); codex_command(codex_home.path())? - .args(["marketplace", "add", source.path().to_str().unwrap()]) + .current_dir(source_parent) + .args(["marketplace", "add", source_arg.as_str()]) .assert() .failure() .stderr(contains(