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) {
137
137
} ) ;
138
138
}
139
139
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 > ) {
142
142
let dir2 = dir2. as_ref ( ) ;
143
143
read_dir ( dir1, |entry_path| {
144
144
let entry_name = entry_path. file_name ( ) . unwrap ( ) ;
145
145
if entry_path. is_dir ( ) {
146
- recursive_diff ( & entry_path, & dir2. join ( entry_name) ) ;
146
+ assert_recursive_eq ( & entry_path, & dir2. join ( entry_name) ) ;
147
147
} else {
148
148
let path2 = dir2. join ( entry_name) ;
149
149
let file1 = fs_wrapper:: read ( & entry_path) ;
You can’t perform that action at this time.
0 commit comments