Skip to content

Commit 230804d

Browse files
committed
run_make_support: rename recursive_diff to assert_recursive_eq
1 parent f66d3d3 commit 230804d

File tree

1 file changed

+3
-3
lines changed
  • src/tools/run-make-support/src

1 file changed

+3
-3
lines changed

src/tools/run-make-support/src/lib.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff 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);

0 commit comments

Comments
 (0)