Rollup merge of #134331 - RalfJung:bootstrap-error-index, r=onur-ozkan

bootstrap: make ./x test error-index work

This makes it more likely that someone who sees an error index CI failure will be able to figure out how to reproduce that locally. Note that bootstrap already prints "Testing stage2 error-index", which is misleading since the test is actually called error_index_generator.
This commit is contained in:
许杰友 Jieyou Xu (Joe) 2024-12-16 01:52:23 +08:00 committed by GitHub
commit b5602cff44
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -2442,7 +2442,9 @@ impl Step for ErrorIndex {
const ONLY_HOSTS: bool = true;
fn should_run(run: ShouldRun<'_>) -> ShouldRun<'_> {
run.path("src/tools/error_index_generator")
// Also add `error-index` here since that is what appears in the error message
// when this fails.
run.path("src/tools/error_index_generator").alias("error-index")
}
fn make_run(run: RunConfig<'_>) {