Skip to content

Commit 6c3a86b

Browse files
committed
Do not run lint-docs tests in stage 1 x test by default
1 parent 8e97112 commit 6c3a86b

File tree

2 files changed

+11
-8
lines changed

2 files changed

+11
-8
lines changed

src/bootstrap/src/core/build_steps/test.rs

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1848,12 +1848,15 @@ NOTE: if you're sure you want to do this, please open an issue as to why. In the
18481848
let is_rustdoc = suite == "rustdoc-ui" || suite == "rustdoc-js";
18491849

18501850
if mode == "run-make" {
1851-
let cargo_path = if builder.top_stage == 0 {
1851+
let cargo_path = if test_compiler.stage == 0 {
18521852
// If we're using `--stage 0`, we should provide the bootstrap cargo.
18531853
builder.initial_cargo.clone()
18541854
} else {
18551855
builder
1856-
.ensure(tool::Cargo::from_build_compiler(test_compiler, test_compiler.host))
1856+
.ensure(tool::Cargo::from_build_compiler(
1857+
builder.compiler(test_compiler.stage - 1, test_compiler.host),
1858+
test_compiler.host,
1859+
))
18571860
.tool_path
18581861
};
18591862

@@ -1902,7 +1905,7 @@ NOTE: if you're sure you want to do this, please open an issue as to why. In the
19021905

19031906
// When top stage is 0, that means that we're testing an externally provided compiler.
19041907
// In that case we need to use its specific sysroot for tests to pass.
1905-
let sysroot = if builder.top_stage == 0 {
1908+
let sysroot = if test_compiler.stage == 0 {
19061909
builder.initial_sysroot.clone()
19071910
} else {
19081911
builder.sysroot(test_compiler)

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

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2124,7 +2124,7 @@ mod snapshot {
21242124
[build] rustc 0 <host> -> HtmlChecker 1 <host>
21252125
[test] html-check <host>
21262126
[build] rustc 0 <host> -> RunMakeSupport 1 <host>
2127-
[build] rustc 1 <host> -> cargo 2 <host>
2127+
[build] rustc 0 <host> -> cargo 1 <host>
21282128
[test] compiletest-run-make 1 <host>
21292129
");
21302130
}
@@ -2143,7 +2143,7 @@ mod snapshot {
21432143
[test] compiletest-ui 1 <host>
21442144
[test] compiletest-ui-fulldeps 1 <host>
21452145
[build] rustc 0 <host> -> RunMakeSupport 1 <host>
2146-
[build] rustc 1 <host> -> cargo 2 <host>
2146+
[build] rustc 0 <host> -> cargo 1 <host>
21472147
[build] rustdoc 1 <host>
21482148
[test] compiletest-run-make 1 <host>
21492149
[test] compiletest-rustdoc 1 <host>
@@ -2172,7 +2172,7 @@ mod snapshot {
21722172
[build] rustc 2 <host> -> rustc 3 <host>
21732173
[test] compiletest-ui-fulldeps 2 <host>
21742174
[build] rustc 0 <host> -> RunMakeSupport 1 <host>
2175-
[build] rustc 2 <host> -> cargo 3 <host>
2175+
[build] rustc 1 <host> -> cargo 2 <host>
21762176
[build] rustdoc 2 <host>
21772177
[test] compiletest-run-make 2 <host>
21782178
[test] compiletest-rustdoc 2 <host>
@@ -2206,7 +2206,7 @@ mod snapshot {
22062206
[build] rustc 2 <host> -> rustc 3 <target1>
22072207
[test] compiletest-ui-fulldeps 2 <target1>
22082208
[build] rustc 0 <host> -> RunMakeSupport 1 <host>
2209-
[build] rustc 2 <host> -> cargo 3 <host>
2209+
[build] rustc 1 <host> -> cargo 2 <host>
22102210
[build] rustdoc 2 <host>
22112211
[test] compiletest-run-make 2 <target1>
22122212
[test] compiletest-rustdoc 2 <target1>
@@ -2301,7 +2301,7 @@ mod snapshot {
23012301
[build] rustc 0 <host> -> HtmlChecker 1 <host>
23022302
[test] html-check <host>
23032303
[build] rustc 0 <host> -> RunMakeSupport 1 <host>
2304-
[build] rustc 2 <host> -> cargo 3 <host>
2304+
[build] rustc 1 <host> -> cargo 2 <host>
23052305
[test] compiletest-run-make 2 <host>
23062306
");
23072307
}

0 commit comments

Comments
 (0)