Skip to content

Commit 51e4acb

Browse files
committed
Fix tests and doclink
1 parent d341887 commit 51e4acb

File tree

2 files changed

+10
-10
lines changed

2 files changed

+10
-10
lines changed

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

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1911,15 +1911,18 @@ mod snapshot {
19111911
let ctx = TestCtx::new();
19121912
insta::assert_snapshot!(
19131913
ctx.config("test")
1914-
// Skip bootstrap tests, as for some reason the recursive nature of running
1915-
// bootstrap tests under bootstrap tests causes non-deterministic snapshot diffs
1916-
// on CI.
1917-
.args(&["--skip", "bootstrap"])
1918-
// rustdoc-js-std requires nodejs to be present
1919-
.args(&["--set", "build.nodejs=/bin/nodejs"])
1914+
// Bootstrap only run by default on CI, so we have to emulate that also locally.
1915+
.args(&["--ci", "true"])
1916+
// These rustdoc tests requires nodejs to be present.
1917+
// We can't easily opt out of it, so if it is present on the local PC, the test
1918+
// would have different result on CI, where nodejs might be missing.
1919+
.args(&["--skip", "rustdoc-js-std"])
1920+
.args(&["--skip", "rustdoc-js"])
1921+
.args(&["--skip", "rustdoc-gui"])
19201922
.render_steps(), @r"
19211923
[build] rustc 0 <host> -> Tidy 1 <host>
19221924
[test] tidy <>
1925+
[build] rustdoc 0 <host>
19231926
[build] llvm <host>
19241927
[build] rustc 0 <host> -> rustc 1 <host>
19251928
[build] rustc 1 <host> -> std 1 <host>
@@ -1940,7 +1943,6 @@ mod snapshot {
19401943
[test] Pretty <host>
19411944
[build] rustc 1 <host> -> std 1 <host>
19421945
[build] rustc 0 <host> -> std 0 <host>
1943-
[build] rustdoc 0 <host>
19441946
[test] CrateLibrustc <host>
19451947
[build] rustc 1 <host> -> rustc 2 <host>
19461948
[test] crate-bootstrap <host> src/tools/coverage-dump
@@ -1976,8 +1978,6 @@ mod snapshot {
19761978
[test] rustc 0 <host> -> rust-analyzer 1 <host>
19771979
[doc] rustc (book) <host>
19781980
[test] rustc 1 <host> -> lint-docs 2 <host>
1979-
[doc] rustc 1 <host> -> std 1 <host> crates=[]
1980-
[test] rustdoc-js-std 1 <host>
19811981
[build] rustc 0 <host> -> RustdocTheme 1 <host>
19821982
[test] rustdoc-theme 1 <host>
19831983
[test] RustdocUi <host>

src/bootstrap/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1165,7 +1165,7 @@ impl Build {
11651165

11661166
/// Return a `Group` guard for a [`Step`] that tests `what` with the given `stage` and `target`
11671167
/// (determined by `host_and_stage`).
1168-
/// Use this instead of [`builder::Builder::msg`] when there is no clear `build_compiler` to be
1168+
/// Use this instead of [`Build::msg`] when there is no clear `build_compiler` to be
11691169
/// determined.
11701170
///
11711171
/// [`Step`]: crate::core::builder::Step

0 commit comments

Comments
 (0)