Skip to content

armgit / codex

Public Imported from GitHub
0

Lightweight coding agent that runs in your terminal

Rust

Stabilize marketplace add local source test (#17424)

ningyi-oaia9796e39c45c
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(