Skip to content

Commit 6b4b852

Browse files
committed
Fix tests and doclink
1 parent 7405a15 commit 6b4b852

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
@@ -1856,15 +1856,18 @@ mod snapshot {
18561856
let ctx = TestCtx::new();
18571857
insta::assert_snapshot!(
18581858
ctx.config("test")
1859-
// Skip bootstrap tests, as for some reason the recursive nature of running
1860-
// bootstrap tests under bootstrap tests causes non-deterministic snapshot diffs
1861-
// on CI.
1862-
.args(&["--skip", "bootstrap"])
1863-
// rustdoc-js-std requires nodejs to be present
1864-
.args(&["--set", "build.nodejs=/bin/nodejs"])
1859+
// Bootstrap only run by default on CI, so we have to emulate that also locally.
1860+
.args(&["--ci", "true"])
1861+
// These rustdoc tests requires nodejs to be present.
1862+
// We can't easily opt out of it, so if it is present on the local PC, the test
1863+
// would have different result on CI, where nodejs might be missing.
1864+
.args(&["--skip", "rustdoc-js-std"])
1865+
.args(&["--skip", "rustdoc-js"])
1866+
.args(&["--skip", "rustdoc-gui"])
18651867
.render_steps(), @r"
18661868
[build] rustc 0 <host> -> Tidy 1 <host>
18671869
[test] tidy <>
1870+
[build] rustdoc 0 <host>
18681871
[build] llvm <host>
18691872
[build] rustc 0 <host> -> rustc 1 <host>
18701873
[build] rustc 1 <host> -> std 1 <host>
@@ -1885,7 +1888,6 @@ mod snapshot {
18851888
[test] Pretty <host>
18861889
[build] rustc 1 <host> -> std 1 <host>
18871890
[build] rustc 0 <host> -> std 0 <host>
1888-
[build] rustdoc 0 <host>
18891891
[test] CrateLibrustc <host>
18901892
[build] rustc 1 <host> -> rustc 2 <host>
18911893
[test] crate-bootstrap <host> src/tools/coverage-dump
@@ -1921,8 +1923,6 @@ mod snapshot {
19211923
[test] rustc 0 <host> -> rust-analyzer 1 <host>
19221924
[doc] rustc (book) <host>
19231925
[test] rustc 1 <host> -> lint-docs 2 <host>
1924-
[doc] rustc 1 <host> -> std 1 <host> crates=[]
1925-
[test] rustdoc-js-std 1 <host>
19261926
[build] rustc 0 <host> -> RustdocTheme 1 <host>
19271927
[test] rustdoc-theme 1 <host>
19281928
[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)