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
1717} ) ;
1818
1919pub fn bless ( ) {
20- let test_dirs = [
20+ let test_suite_dirs = [
2121 clippy_project_root ( ) . join ( "tests" ) . join ( "ui" ) ,
2222 clippy_project_root ( ) . join ( "tests" ) . join ( "ui-toml" ) ,
2323 clippy_project_root ( ) . join ( "tests" ) . join ( "ui-cargo" ) ,
2424 ] ;
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 )
2727 . into_iter ( )
2828 . filter_map ( Result :: ok)
2929 . filter ( |f| f. path ( ) . extension ( ) == Some ( OsStr :: new ( "rs" ) ) )
3030 . 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 ( ) ;
3232
3333 update_reference_file ( f. path ( ) . with_extension ( "stdout" ) , test_name. with_extension ( "stdout" ) ) ;
3434 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