File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
src/tools/run-make-support/src Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -137,13 +137,13 @@ pub fn set_host_rpath(cmd: &mut Command) {
137137 } ) ;
138138}
139139
140- /// Check that all files in `dir1` exist and have the same content in `dir2`. Panic otherwise.
141- pub fn recursive_diff ( dir1 : impl AsRef < Path > , dir2 : impl AsRef < Path > ) {
140+ /// Assert that all files in `dir1` exist and have the same content in `dir2`
141+ pub fn assert_recursive_eq ( dir1 : impl AsRef < Path > , dir2 : impl AsRef < Path > ) {
142142 let dir2 = dir2. as_ref ( ) ;
143143 read_dir ( dir1, |entry_path| {
144144 let entry_name = entry_path. file_name ( ) . unwrap ( ) ;
145145 if entry_path. is_dir ( ) {
146- recursive_diff ( & entry_path, & dir2. join ( entry_name) ) ;
146+ assert_recursive_eq ( & entry_path, & dir2. join ( entry_name) ) ;
147147 } else {
148148 let path2 = dir2. join ( entry_name) ;
149149 let file1 = fs_wrapper:: read ( & entry_path) ;
You can’t perform that action at this time.
0 commit comments