File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -17,18 +17,18 @@ pub static CARGO_TARGET_DIR: SyncLazy<PathBuf> = SyncLazy::new(|| match env::var
17
17
} ) ;
18
18
19
19
pub fn bless ( ) {
20
- let test_dirs = [
20
+ let test_suite_dirs = [
21
21
clippy_project_root ( ) . join ( "tests" ) . join ( "ui" ) ,
22
22
clippy_project_root ( ) . join ( "tests" ) . join ( "ui-toml" ) ,
23
23
clippy_project_root ( ) . join ( "tests" ) . join ( "ui-cargo" ) ,
24
24
] ;
25
- for test_dir in & test_dirs {
26
- WalkDir :: new ( test_dir )
25
+ for test_suite_dir in & test_suite_dirs {
26
+ WalkDir :: new ( test_suite_dir )
27
27
. into_iter ( )
28
28
. filter_map ( Result :: ok)
29
29
. filter ( |f| f. path ( ) . extension ( ) == Some ( OsStr :: new ( "rs" ) ) )
30
30
. for_each ( |f| {
31
- let test_name = f. path ( ) . strip_prefix ( test_dir ) . unwrap ( ) ;
31
+ let test_name = f. path ( ) . strip_prefix ( test_suite_dir ) . unwrap ( ) ;
32
32
33
33
update_reference_file ( f. path ( ) . with_extension ( "stdout" ) , test_name. with_extension ( "stdout" ) ) ;
34
34
update_reference_file ( f. path ( ) . with_extension ( "stderr" ) , test_name. with_extension ( "stderr" ) ) ;
You can’t perform that action at this time.
0 commit comments