From 479bff4163599bd8f5f4c604dab47b73ac2aae4e Mon Sep 17 00:00:00 2001 From: Ningyi Xie Date: Fri, 10 Apr 2026 21:21:53 -0700 Subject: [PATCH] Stabilize marketplace add local source test Use an explicit relative local marketplace source in the integration test so it exercises the local-source rejection path consistently across platforms. 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 1a9db02d742..9cc5c65a5cd 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(