Fix compile-test under cargo nextest

This commit is contained in:
Alex Macleod 2023-06-27 18:25:35 +00:00
parent c710b4815d
commit 95ab05de25
1 changed files with 9 additions and 0 deletions

View File

@ -212,6 +212,15 @@ fn run_ui_cargo() {
} }
fn main() { 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"); set_var("CLIPPY_DISABLE_DOCS_LINKS", "true");
run_ui(); run_ui();
run_ui_toml(); run_ui_toml();