Skip to content

Commit 3c49f8b

Browse files
committed
tests: Use git::copy_tracked_files from test-helper
1 parent b19979f commit 3c49f8b

File tree

2 files changed

+2
-9
lines changed

2 files changed

+2
-9
lines changed

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ build-context = "0.1"
3939
easy-ext = "1"
4040
fs-err = "3"
4141
tempfile = { version = "3", default-features = false }
42-
test-helper = { features = ["cli", "doc", "git"], git = "https://github.com/taiki-e/test-helper.git", rev = "d2272e8" }
42+
test-helper = { features = ["cli", "doc", "git"], git = "https://github.com/taiki-e/test-helper.git", rev = "f38a7f5" }
4343

4444
[lints]
4545
workspace = true

tests/auxiliary/mod.rs

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -209,13 +209,6 @@ fn test_project(model: &str) -> (tempfile::TempDir, PathBuf) {
209209
workspace_root = tmpdir_path.to_path_buf();
210210
}
211211

212-
for (file_name, from) in test_helper::git::ls_files(model_path, &[]) {
213-
let to = &tmpdir_path.join(file_name);
214-
if !to.parent().unwrap().is_dir() {
215-
fs::create_dir_all(to.parent().unwrap()).unwrap();
216-
}
217-
fs::copy(from, to).unwrap();
218-
}
219-
212+
test_helper::git::copy_tracked_files(model_path, tmpdir_path);
220213
(tmpdir, workspace_root)
221214
}

0 commit comments

Comments
 (0)