diff options
| author | Jesus Checa Hidalgo <jchecahi@redhat.com> | 2023-02-22 08:25:14 +0100 |
|---|---|---|
| committer | Jesus Checa Hidalgo <jchecahi@redhat.com> | 2023-02-22 08:29:09 +0100 |
| commit | 2f163554866e1b4b348811e9df6a4a753beb0abf (patch) | |
| tree | c1d181d5fb0644c0ac1a4ab3e6c009de98913dab | |
| parent | 824f915cbc32c0942122389274a1b6fbe2ffc51e (diff) | |
| download | rust-2f163554866e1b4b348811e9df6a4a753beb0abf.tar.gz rust-2f163554866e1b4b348811e9df6a4a753beb0abf.zip | |
Add no-fail-fast support to miri, rustfmt and clippy testsuites
This commit adds `--no-fail-fast` flag to each `cargo test` command in each tool Step trait implementation. Fixes #108261
| -rw-r--r-- | src/bootstrap/test.rs | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/bootstrap/test.rs b/src/bootstrap/test.rs index 9cd6107b43a..b4f1506dc8f 100644 --- a/src/bootstrap/test.rs +++ b/src/bootstrap/test.rs @@ -435,6 +435,10 @@ impl Step for Rustfmt { &[], ); + if !builder.fail_fast { + cargo.arg("--no-fail-fast"); + } + let dir = testdir(builder, compiler.host); t!(fs::create_dir_all(&dir)); cargo.env("RUSTFMT_TEST_DIR", dir); @@ -615,6 +619,10 @@ impl Step for Miri { ); cargo.add_rustc_lib_path(builder, compiler); + if !builder.fail_fast { + cargo.arg("--no-fail-fast"); + } + // miri tests need to know about the stage sysroot cargo.env("MIRI_SYSROOT", &miri_sysroot); cargo.env("MIRI_HOST_SYSROOT", sysroot); @@ -746,6 +754,10 @@ impl Step for Clippy { &[], ); + if !builder.fail_fast { + cargo.arg("--no-fail-fast"); + } + cargo.env("RUSTC_TEST_SUITE", builder.rustc(compiler)); cargo.env("RUSTC_LIB_PATH", builder.rustc_libdir(compiler)); let host_libs = builder.stage_out(compiler, Mode::ToolRustc).join(builder.cargo_dir()); |
