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 @@ -117,13 +117,13 @@ pub fn set_host_rpath(cmd: &mut Command) {
117
117
} ) ;
118
118
}
119
119
120
- /// Check that all files in `dir1` exist and have the same content in `dir2`. Panic otherwise.
121
- pub fn recursive_diff ( dir1 : impl AsRef < Path > , dir2 : impl AsRef < Path > ) {
120
+ /// Assert that all files in `dir1` exist and have the same content in `dir2`
121
+ pub fn assert_recursive_eq ( dir1 : impl AsRef < Path > , dir2 : impl AsRef < Path > ) {
122
122
let dir2 = dir2. as_ref ( ) ;
123
123
read_dir ( dir1, |entry_path| {
124
124
let entry_name = entry_path. file_name ( ) . unwrap ( ) ;
125
125
if entry_path. is_dir ( ) {
126
- recursive_diff ( & entry_path, & dir2. join ( entry_name) ) ;
126
+ assert_recursive_eq ( & entry_path, & dir2. join ( entry_name) ) ;
127
127
} else {
128
128
let path2 = dir2. join ( entry_name) ;
129
129
let file1 = fs_wrapper:: read ( & entry_path) ;
You can’t perform that action at this time.
0 commit comments