]> git.lizzy.rs Git - rust.git/commit - src/tools/miri
Auto merge of #96375 - jyn514:bootstrap-submodules, r=Mark-Simulacrum
authorbors <bors@rust-lang.org>
Wed, 11 May 2022 00:41:50 +0000 (00:41 +0000)
committerbors <bors@rust-lang.org>
Wed, 11 May 2022 00:41:50 +0000 (00:41 +0000)
commit532be942ddf8f40d086e54d157453434b16e9647
tree11f7a745d26ff8a8e2977ae3489436ac664b8cc4
parentecd44958e0a21110d09862ee080d95a4ca6c52f8
parent212fc2134d0bb919a5c7d0a6aec1dd88a230a444
Auto merge of #96375 - jyn514:bootstrap-submodules, r=Mark-Simulacrum

Fix running bootstrap tests on a fresh clone

In #96303, I changed the tests not to manage submodules, with the main
goal of avoiding a clone for llvm-project. Unfortunately, there are some tests
which depend on submodules - I didn't notice locally because they were already checked out for me,
and CI doesn't use submodule handling at all. Fresh clones, however, were impacted:
```
failures:

---- builder::tests::defaults::doc_default stdout ----
thread 'main' panicked at 'fs::read_dir(builder.src.join(&relative_path).join("redirects")) failed with No such file or directory (os error 2)', src/bootstrap/doc.rs:232:21
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

---- builder::tests::dist::dist_only_cross_host stdout ----
thread 'main' panicked at 'fs::read_to_string(&toml_file_name) failed with No such file or directory (os error 2)', src/bootstrap/lib.rs:1314:20
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
```

Try and get the best of both worlds by only checking out the submodules actually used in tests.