Skip to content

Commit daaf0c9

Browse files
committed
Fix tests and doclink
1 parent 1c1d630 commit daaf0c9

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
@@ -2042,15 +2042,18 @@ mod snapshot {
20422042
let ctx = TestCtx::new();
20432043
insta::assert_snapshot!(
20442044
ctx.config("test")
2045-
// Skip bootstrap tests, as for some reason the recursive nature of running
2046-
// bootstrap tests under bootstrap tests causes non-deterministic snapshot diffs
2047-
// on CI.
2048-
.args(&["--skip", "bootstrap"])
2049-
// rustdoc-js-std requires nodejs to be present
2050-
.args(&["--set", "build.nodejs=/bin/nodejs"])
2045+
// Bootstrap only run by default on CI, so we have to emulate that also locally.
2046+
.args(&["--ci", "true"])
2047+
// These rustdoc tests requires nodejs to be present.
2048+
// We can't easily opt out of it, so if it is present on the local PC, the test
2049+
// would have different result on CI, where nodejs might be missing.
2050+
.args(&["--skip", "rustdoc-js-std"])
2051+
.args(&["--skip", "rustdoc-js"])
2052+
.args(&["--skip", "rustdoc-gui"])
20512053
.render_steps(), @r"
20522054
[build] rustc 0 <host> -> Tidy 1 <host>
20532055
[test] tidy <>
2056+
[build] rustdoc 0 <host>
20542057
[build] llvm <host>
20552058
[build] rustc 0 <host> -> rustc 1 <host>
20562059
[build] rustc 1 <host> -> std 1 <host>
@@ -2071,7 +2074,6 @@ mod snapshot {
20712074
[test] Pretty <host>
20722075
[build] rustc 1 <host> -> std 1 <host>
20732076
[build] rustc 0 <host> -> std 0 <host>
2074-
[build] rustdoc 0 <host>
20752077
[test] CrateLibrustc <host>
20762078
[build] rustc 1 <host> -> rustc 2 <host>
20772079
[test] crate-bootstrap <host> src/tools/coverage-dump
@@ -2107,8 +2109,6 @@ mod snapshot {
21072109
[test] rustc 0 <host> -> rust-analyzer 1 <host>
21082110
[doc] rustc (book) <host>
21092111
[test] rustc 1 <host> -> lint-docs 2 <host>
2110-
[doc] rustc 1 <host> -> std 1 <host> crates=[]
2111-
[test] rustdoc-js-std 1 <host>
21122112
[build] rustc 0 <host> -> RustdocTheme 1 <host>
21132113
[test] rustdoc-theme 1 <host>
21142114
[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)