Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion codex-rs/cli/tests/marketplace_add.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down
Loading