Skip to content

Commit

Permalink
Fix dogfood
Browse files Browse the repository at this point in the history
  • Loading branch information
blyxyas committed Jun 27, 2023
1 parent d69c4f5 commit 0cd8bbc
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions tests/compile-test.rs
Original file line number Diff line number Diff line change
Expand Up @@ -223,17 +223,17 @@ fn main() {
"cargo" => f = run_ui_cargo as fn(),
"toml" => f = run_ui_toml as fn(),
"internal" => f = run_internal_tests as fn(),
"rustfix-coverage-known-exceptions-accuracy" => f = rustfix_coverage_known_exceptions_accuracy as fn(),
"ui-cargo-toml-metadata" => f = ui_cargo_toml_metadata() as fn(),
"rustfix-coverage-known-exceptions-accuracy" => f = rustfix_coverage_known_exceptions_accuracy as fn(),
"ui-cargo-toml-metadata" => f = ui_cargo_toml_metadata as fn(),

_ => panic!("unknown speedtest: {speedtest} || accepted speedtests are: [ui, cargo, toml, internal]"),
}
};

let iterations;
if let Ok(iterations_str) = std::env::var("SPEEDTEST_ITERATIONS") {
iterations = iterations_str
.parse::<u64>()
.unwrap_or_else(|_| panic!("Couldn't parse `{}`, please use a valid u64", iterations_str));
.unwrap_or_else(|_| panic!("Couldn't parse `{iterations_str}`, please use a valid u64"));
} else {
iterations = 1000;
}
Expand All @@ -250,8 +250,8 @@ fn main() {
run_ui_toml();
run_ui_cargo();
run_internal_tests();
rustfix_coverage_known_exceptions_accuracy();
ui_cargo_toml_metadata();
rustfix_coverage_known_exceptions_accuracy();
ui_cargo_toml_metadata();
}
}

Expand Down

0 comments on commit 0cd8bbc

Please sign in to comment.