codex: fix CI failure on PR #28129

This commit is contained in:
Adam Perry
2026-06-14 00:05:09 +00:00
parent 778b793d5b
commit 7b1b0844ef
+7 -3
View File
@@ -98,9 +98,13 @@ async fn assert_exec_process_rejects_non_native_cwd_without_reserving_process_id
let context = create_process_context(use_remote).await?;
let process_id = ProcessId::from("proc-non-native-cwd");
let cwd = PathUri::parse("file://server/share/checkout")?;
let source = cwd
.to_abs_path()
.expect_err("UNC cwd should not be native on Unix");
let source = match cwd.to_abs_path() {
Ok(path) => anyhow::bail!(
"UNC cwd should not be native on Unix: {}",
path.as_path().display()
),
Err(source) => source,
};
let error = match context
.backend
.start(ExecParams {