Skip to content

Commit df5cc59

Browse files
committed
fix nested GHA groups (redux)
1 parent fb3ac44 commit df5cc59

File tree

1 file changed

+6
-10
lines changed

1 file changed

+6
-10
lines changed

src/bootstrap/test.rs

+6-10
Original file line numberDiff line numberDiff line change
@@ -1893,14 +1893,6 @@ impl Step for BookTest {
18931893
///
18941894
/// This uses the `rustdoc` that sits next to `compiler`.
18951895
fn run(self, builder: &Builder<'_>) {
1896-
let host = self.compiler.host;
1897-
let _guard = builder.msg(
1898-
Kind::Test,
1899-
self.compiler.stage,
1900-
&format!("book {}", self.name),
1901-
host,
1902-
host,
1903-
);
19041896
// External docs are different from local because:
19051897
// - Some books need pre-processing by mdbook before being tested.
19061898
// - They need to save their state to toolstate.
@@ -1943,7 +1935,7 @@ impl BookTest {
19431935
let _guard = builder.msg(
19441936
Kind::Test,
19451937
compiler.stage,
1946-
format_args!("rustbook {}", self.path.display()),
1938+
format_args!("mdbook {}", self.path.display()),
19471939
compiler.host,
19481940
compiler.host,
19491941
);
@@ -1959,8 +1951,12 @@ impl BookTest {
19591951
/// This runs `rustdoc --test` on all `.md` files in the path.
19601952
fn run_local_doc(self, builder: &Builder<'_>) {
19611953
let compiler = self.compiler;
1954+
let host = self.compiler.host;
19621955

1963-
builder.ensure(compile::Std::new(compiler, compiler.host));
1956+
builder.ensure(compile::Std::new(compiler, host));
1957+
1958+
let _guard =
1959+
builder.msg(Kind::Test, compiler.stage, &format!("book {}", self.name), host, host);
19641960

19651961
// Do a breadth-first traversal of the `src/doc` directory and just run
19661962
// tests for all files that end in `*.md`

0 commit comments

Comments
 (0)