Skip to content

Commit c8ae70a

Browse files
committed
Fix tests and doclink
1 parent 4da586f commit c8ae70a

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
@@ -1995,15 +1995,18 @@ mod snapshot {
19951995
let ctx = TestCtx::new();
19961996
insta::assert_snapshot!(
19971997
ctx.config("test")
1998-
// Skip bootstrap tests, as for some reason the recursive nature of running
1999-
// bootstrap tests under bootstrap tests causes non-deterministic snapshot diffs
2000-
// on CI.
2001-
.args(&["--skip", "bootstrap"])
2002-
// rustdoc-js-std requires nodejs to be present
2003-
.args(&["--set", "build.nodejs=/bin/nodejs"])
1998+
// Bootstrap only run by default on CI, so we have to emulate that also locally.
1999+
.args(&["--ci", "true"])
2000+
// These rustdoc tests requires nodejs to be present.
2001+
// We can't easily opt out of it, so if it is present on the local PC, the test
2002+
// would have different result on CI, where nodejs might be missing.
2003+
.args(&["--skip", "rustdoc-js-std"])
2004+
.args(&["--skip", "rustdoc-js"])
2005+
.args(&["--skip", "rustdoc-gui"])
20042006
.render_steps(), @r"
20052007
[build] rustc 0 <host> -> Tidy 1 <host>
20062008
[test] tidy <>
2009+
[build] rustdoc 0 <host>
20072010
[build] llvm <host>
20082011
[build] rustc 0 <host> -> rustc 1 <host>
20092012
[build] rustc 1 <host> -> std 1 <host>
@@ -2024,7 +2027,6 @@ mod snapshot {
20242027
[test] Pretty <host>
20252028
[build] rustc 1 <host> -> std 1 <host>
20262029
[build] rustc 0 <host> -> std 0 <host>
2027-
[build] rustdoc 0 <host>
20282030
[test] CrateLibrustc <host>
20292031
[build] rustc 1 <host> -> rustc 2 <host>
20302032
[test] crate-bootstrap <host> src/tools/coverage-dump
@@ -2060,8 +2062,6 @@ mod snapshot {
20602062
[test] rustc 0 <host> -> rust-analyzer 1 <host>
20612063
[doc] rustc (book) <host>
20622064
[test] rustc 1 <host> -> lint-docs 2 <host>
2063-
[doc] rustc 1 <host> -> std 1 <host> crates=[]
2064-
[test] rustdoc-js-std 1 <host>
20652065
[build] rustc 0 <host> -> RustdocTheme 1 <host>
20662066
[test] rustdoc-theme 1 <host>
20672067
[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)