about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorRalf Jung <post@ralfj.de>2023-04-11 08:04:09 +0200
committerRalf Jung <post@ralfj.de>2023-04-11 13:40:29 +0200
commit873ab04d898b32cd9196d15e68c724d583c07f17 (patch)
tree066a26538511dbc714b093ec1a19127c79fa3828 /src
parent8e1162f07e8b7d59f6a0e0a5576352d888defa78 (diff)
downloadrust-873ab04d898b32cd9196d15e68c724d583c07f17.tar.gz
rust-873ab04d898b32cd9196d15e68c724d583c07f17.zip
fix running Miri tests
Diffstat (limited to 'src')
-rw-r--r--src/bootstrap/test.rs5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/bootstrap/test.rs b/src/bootstrap/test.rs
index 058ff429e80..7b212d9cfbd 100644
--- a/src/bootstrap/test.rs
+++ b/src/bootstrap/test.rs
@@ -638,7 +638,10 @@ impl Step for Miri {
         // Forward test filters.
         cargo.arg("--").args(builder.config.cmd.test_args());
 
-        add_flags_and_try_run_tests(builder, &mut cargo.into());
+        // This can NOT be `add_flags_and_try_run_tests` since the Miri test runner
+        // does not understand those flags!
+        let mut cargo = Command::from(cargo);
+        builder.run(&mut cargo);
 
         // # Run `cargo miri test`.
         // This is just a smoke test (Miri's own CI invokes this in a bunch of different ways and ensures