Uh oh!
There was an error while loading. Please reload this page.
no-fail-fast support for tool testsuites - #108264
Conversation
rustbot
commented
Feb 20, 2023
Thanks for the pull request, and welcome! The Rust team is excited to review your changes, and you should hear from @ozkanonur (or someone else) soon. Please see the contribution instructions for more information. |
jchecahi
commented
Feb 20, 2023
I have tested this by enforcing some tests to fail by adding an |
onur-ozkan
commented
Feb 21, 2023
Changing behaviour of test suite in tool module doesn't seem right. It also duplicates the control testing to multiple modules which isn't really good. You can pass |
onur-ozkan
commented
Feb 21, 2023
@rustbot author |
5db2939 to
83ae6efCompareThis commit adds `--no-fail-fast` flag to each `cargo test` command in each tool Step trait implementation. Fixesrust-lang#108261
83ae6ef to
2f16355Comparejchecahi
commented
Feb 22, 2023
@ozkanonur thanks for the input, I've made the changes you recommended. Let me make sure I understood the reasoning behind your advice. IIUIC the changes related to the testsuites should be placed always in |
onur-ozkan
commented
Feb 22, 2023
We already pass the test flags in test module, if we do it in other modules as well, it would be not good for us to work/debug on it. And yes, creating |
This looks good for now, we can do the code unification in seperated PR pointing the related issue. Thank you for the contribution. |
onur-ozkan
commented
Feb 22, 2023
@bors r+ rollup |
bors
commented
Feb 22, 2023
…llaumeGomez Rollup of 8 pull requests Successful merges: - rust-lang#108110 (Move some `InferCtxt` methods to `EvalCtxt` in new solver) - rust-lang#108168 (Fix ICE on type alias in recursion) - rust-lang#108230 (Convert a hard-warning about named static lifetimes into lint "unused_lifetimes") - rust-lang#108239 (Fix overlapping spans in removing extra arguments) - rust-lang#108246 (Add an InstCombine for redundant casts) - rust-lang#108264 (no-fail-fast support for tool testsuites) - rust-lang#108310 (rustdoc: Fix duplicated attributes for first reexport) - rust-lang#108318 (Remove unused FileDesc::get_cloexec) Failed merges: r? `@ghost` `@rustbot` modify labels: rollup
This commit adds a change to pass "--no-fail-fast" flag tocargo testinsidetool::prepare_tool_cargo()so there is no need to do it manually in eachSteptrait implementation in src/bootstrap/test.rs.Also, removes the flag from test.rs where prepare_tool_cargo() is called so cargo doesn't complain because the flag has been passed twice.This commit adds
--no-fail-fastflag to eachcargo testcommand in each tool Step trait implementation (
miri,rustfmtandclippy).Fixes#108261