performance-metrics: Initialize tests after setting overrides
No functional change. Signed-off-by: Wei Liu <liuwe@microsoft.com>
This commit is contained in:
parent
423280fb96
commit
76d8d47f6a
1 changed files with 2 additions and 2 deletions
|
|
@ -712,8 +712,6 @@ fn main() {
|
|||
// Run performance tests sequentially and report results (in both readable/json format)
|
||||
let mut metrics_report: MetricsReport = Default::default();
|
||||
|
||||
init_tests();
|
||||
|
||||
let overrides = Arc::new(PerformanceTestOverrides {
|
||||
test_iterations: cmd_arguments
|
||||
.get_one::<String>("iterations")
|
||||
|
|
@ -727,6 +725,8 @@ fn main() {
|
|||
.unwrap_or_default(),
|
||||
});
|
||||
|
||||
init_tests();
|
||||
|
||||
for test in test_list.iter() {
|
||||
if test_filter.is_empty() || test_filter.iter().any(|&s| test.name.contains(s)) {
|
||||
match run_test_with_timeout(test, &overrides) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue