Skip to content

Commit a9796e3

Browse files
ningyi-oaicodex
andauthored
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 <noreply@openai.com>
1 parent b7139a7 commit a9796e3

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

codex-rs/cli/tests/marketplace_add.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,9 +41,12 @@ async fn marketplace_add_rejects_local_directory_source() -> Result<()> {
4141
let codex_home = TempDir::new()?;
4242
let source = TempDir::new()?;
4343
write_marketplace_source(source.path(), "local ref")?;
44+
let source_parent = source.path().parent().unwrap();
45+
let source_arg = format!("./{}", source.path().file_name().unwrap().to_string_lossy());
4446

4547
codex_command(codex_home.path())?
46-
.args(["marketplace", "add", source.path().to_str().unwrap()])
48+
.current_dir(source_parent)
49+
.args(["marketplace", "add", source_arg.as_str()])
4750
.assert()
4851
.failure()
4952
.stderr(contains(

0 commit comments

Comments
 (0)