Skip to content

Commit cb0ed14

Browse files
authored
Merge pull request #258 from Concordium/profdata-dir
Supplying raw-output-coverage directory to profdata command
2 parents e4ad715 + 2f55390 commit cb0ed14

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

src/project.rs

+1-8
Original file line numberDiff line numberDiff line change
@@ -673,14 +673,7 @@ impl FuzzProject {
673673
fn merge_coverage(&self, profdata_raw_path: &Path, profdata_out_path: &Path) -> Result<()> {
674674
let mut merge_cmd = Command::new(cargo_binutils::Tool::Profdata.path()?);
675675
merge_cmd.arg("merge").arg("-sparse");
676-
for raw_file in fs::read_dir(profdata_raw_path).with_context(|| {
677-
format!(
678-
"failed to read directory entries of {}",
679-
profdata_raw_path.display()
680-
)
681-
})? {
682-
merge_cmd.arg(raw_file?.path());
683-
}
676+
merge_cmd.arg(profdata_raw_path);
684677
merge_cmd.arg("-o").arg(profdata_out_path);
685678

686679
eprintln!("Merging raw coverage data...");

0 commit comments

Comments
 (0)