@@ -8,9 +8,9 @@ use build_helper::metrics::{
8
8
} ;
9
9
10
10
use crate :: github:: JobInfoResolver ;
11
- use crate :: metrics;
12
11
use crate :: metrics:: { JobMetrics , JobName , get_test_suites} ;
13
12
use crate :: utils:: { output_details, pluralize} ;
13
+ use crate :: { metrics, utils} ;
14
14
15
15
/// Outputs durations of individual bootstrap steps from the gathered bootstrap invocations,
16
16
/// and also a table with summarized information about executed tests.
@@ -394,18 +394,17 @@ fn aggregate_tests(metrics: &JsonRoot) -> TestSuiteData {
394
394
// Poor man's detection of doctests based on the "(line XYZ)" suffix
395
395
let is_doctest = matches ! ( suite. metadata, TestSuiteMetadata :: CargoPackage { .. } )
396
396
&& test. name . contains ( "(line" ) ;
397
- let test_entry = Test { name : generate_test_name ( & test. name ) , stage, is_doctest } ;
397
+ let test_entry = Test {
398
+ name : utils:: normalize_path_delimiters ( & test. name ) . to_string ( ) ,
399
+ stage,
400
+ is_doctest,
401
+ } ;
398
402
tests. insert ( test_entry, test. outcome . clone ( ) ) ;
399
403
}
400
404
}
401
405
TestSuiteData { tests }
402
406
}
403
407
404
- /// Normalizes Windows-style path delimiters to Unix-style paths.
405
- fn generate_test_name ( name : & str ) -> String {
406
- name. replace ( '\\' , "/" )
407
- }
408
-
409
408
/// Prints test changes in Markdown format to stdout.
410
409
fn report_test_diffs (
411
410
diff : AggregatedTestDiffs ,
0 commit comments