Skip to content

Commit

Permalink
bootstrap: propagate test-args to miri and clippy test suites
Browse files Browse the repository at this point in the history
  • Loading branch information
RalfJung committed May 24, 2020
1 parent 3137f8e commit 7a121ad
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/bootstrap/test.rs
Expand Up @@ -439,6 +439,8 @@ impl Step for Miri {
cargo.env("RUSTC_LIB_PATH", builder.rustc_libdir(compiler));
cargo.env("MIRI_PATH", miri);

cargo.arg("--").args(builder.config.cmd.test_args());

builder.add_rustc_lib_path(compiler, &mut cargo);

if !try_run(builder, &mut cargo.into()) {
Expand Down Expand Up @@ -545,6 +547,8 @@ impl Step for Clippy {
// clippy tests need to find the driver
cargo.env("CLIPPY_DRIVER_PATH", clippy);

cargo.arg("--").args(builder.config.cmd.test_args());

builder.add_rustc_lib_path(compiler, &mut cargo);

try_run(builder, &mut cargo.into());
Expand Down

0 comments on commit 7a121ad

Please sign in to comment.