File tree Expand file tree Collapse file tree 1 file changed +10
-7
lines changed Expand file tree Collapse file tree 1 file changed +10
-7
lines changed Original file line number Diff line number Diff line change @@ -44,6 +44,10 @@ fn analyse_sample(
44
44
Engine :: Servo { .. } => {
45
45
for entry in std:: fs:: read_dir ( & sample_dir) ? {
46
46
let path = entry?. path ( ) ;
47
+ // Skip our own output files `summaries.*`.
48
+ if path. file_stem ( ) == Some ( OsStr :: new ( "summaries" ) ) {
49
+ continue ;
50
+ }
47
51
// Filter to `manifest*.json`.
48
52
if path. extension ( ) == Some ( OsStr :: new ( "json" ) ) {
49
53
args. push ( path. to_str ( ) . ok_or_eyre ( "Unsupported path" ) ?. to_owned ( ) ) ;
@@ -79,13 +83,12 @@ fn analyse_sample(
79
83
for result in traceconv_results {
80
84
result?;
81
85
}
82
- }
83
- }
84
- for entry in std:: fs:: read_dir ( & sample_dir) ? {
85
- let path = entry?. path ( ) ;
86
- match engine. engine {
87
- Engine :: Servo { .. } => { }
88
- Engine :: Chromium { .. } => {
86
+ for entry in std:: fs:: read_dir ( & sample_dir) ? {
87
+ let path = entry?. path ( ) ;
88
+ // Skip our own output files `summaries.*`.
89
+ if path. file_stem ( ) == Some ( OsStr :: new ( "summaries" ) ) {
90
+ continue ;
91
+ }
89
92
// Filter to `chrome*.json`.
90
93
if path. extension ( ) == Some ( OsStr :: new ( "json" ) ) {
91
94
args. push ( path. to_str ( ) . ok_or_eyre ( "Unsupported path" ) ?. to_owned ( ) ) ;
You can’t perform that action at this time.
0 commit comments