Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cleanup trace file after coverage map is generated successfully #15153

Merged
merged 2 commits into from
Nov 2, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion third_party/move/tools/move-cli/src/base/test.rs
Original file line number Diff line number Diff line change
Expand Up @@ -342,9 +342,10 @@ pub fn run_move_unit_tests_with_factory<W: Write + Send, F: UnitTestFactory + Se
let buf_writer = &mut *LOGGING_FILE_WRITER.lock().unwrap();
buf_writer.flush().unwrap();
}
let coverage_map = CoverageMap::from_trace_file(trace_path);
let coverage_map = CoverageMap::from_trace_file(trace_path.clone());
output_map_to_file(coverage_map_path, &coverage_map).unwrap();
}
cleanup_trace();
Ok(UnitTestResult::Success)
}

Expand Down
Loading