Skip to content

Commit 21c30ea

Browse files
committed
Fix install test on Windows
1 parent 0470945 commit 21c30ea

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/bootstrap/src/core/builder/tests.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2312,8 +2312,9 @@ mod snapshot {
23122312
insta::assert_snapshot!(
23132313
ctx.config("install")
23142314
.args(&[
2315-
"--set", &format!("install.prefix={}", ctx.dir().display()),
2316-
"--set", &format!("install.sysconfdir={}", ctx.dir().display()),
2315+
// Using backslashes fails with `--set`
2316+
"--set", &format!("install.prefix={}", ctx.dir().display()).replace("\\", "/"),
2317+
"--set", &format!("install.sysconfdir={}", ctx.dir().display()).replace("\\", "/"),
23172318
"--set", "build.extended=true"
23182319
])
23192320
.render_steps(), @r"

0 commit comments

Comments
 (0)