Skip to content

Commit

Permalink
Auto merge of #11041 - Alexendoo:nextest, r=Manishearth
Browse files Browse the repository at this point in the history
Fix compile-test under cargo nextest

Fixes #11036

changelog: none
  • Loading branch information
bors committed Jun 27, 2023
2 parents c710b48 + 95ab05d commit 2e32905
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions tests/compile-test.rs
Original file line number Diff line number Diff line change
Expand Up @@ -212,6 +212,15 @@ fn run_ui_cargo() {
}

fn main() {
// Support being run by cargo nextest - https://nexte.st/book/custom-test-harnesses.html
if env::args().any(|arg| arg == "--list") {
if !env::args().any(|arg| arg == "--ignored") {
println!("compile_test: test");
}

return;
}

set_var("CLIPPY_DISABLE_DOCS_LINKS", "true");
run_ui();
run_ui_toml();
Expand Down

0 comments on commit 2e32905

Please sign in to comment.