Skip to content

Commit 9a629ec

Browse files
committed
Fix install test on Windows
1 parent 7da375e commit 9a629ec

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
@@ -2235,8 +2235,9 @@ mod snapshot {
22352235
insta::assert_snapshot!(
22362236
ctx.config("install")
22372237
.args(&[
2238-
"--set", &format!("install.prefix={}", ctx.dir().display()),
2239-
"--set", &format!("install.sysconfdir={}", ctx.dir().display()),
2238+
// Using backslashes fails with `--set`
2239+
"--set", &format!("install.prefix={}", ctx.dir().display()).replace("\\", "/"),
2240+
"--set", &format!("install.sysconfdir={}", ctx.dir().display()).replace("\\", "/"),
22402241
"--set", "build.extended=true"
22412242
])
22422243
.render_steps(), @r"

0 commit comments

Comments
 (0)