Skip to content

Commit 61a012f

Browse files
committed
test: preserve CI for the snapshot registry helper
1 parent 6a8070a commit 61a012f

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

  • crates/vp_cli_snapshots/tests/cli_snapshots

crates/vp_cli_snapshots/tests/cli_snapshots/main.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1103,6 +1103,11 @@ fn start_local_registry(
11031103
if let Some(profile) = std::env::var_os("USERPROFILE") {
11041104
cmd.env("USERPROFILE", profile);
11051105
}
1106+
// The registry uses CI to keep Bun's cache off the Windows Dev Drive.
1107+
// Preserve it only for this helper; fixture commands stay isolated.
1108+
if let Some(ci) = std::env::var_os("CI") {
1109+
cmd.env("CI", ci);
1110+
}
11061111
group_leader(&mut cmd);
11071112
let mut child = cmd
11081113
.spawn()

0 commit comments

Comments
 (0)