Skip to content

Commit

Permalink
fix(cli): canonicalize coverage dir (#10364)
Browse files Browse the repository at this point in the history
  • Loading branch information
caspervonb authored and piscisaureus committed May 31, 2021
1 parent bccfd9a commit df3d878
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion cli/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -925,7 +925,10 @@ async fn test_command(
concurrent_jobs: usize,
) -> Result<(), AnyError> {
if let Some(ref coverage_dir) = flags.coverage_dir {
env::set_var("DENO_UNSTABLE_COVERAGE_DIR", coverage_dir);
env::set_var(
"DENO_UNSTABLE_COVERAGE_DIR",
PathBuf::from(coverage_dir).canonicalize()?,
);
}

// TODO(caspervonb) move this chunk into tools::test_runner.
Expand Down

0 comments on commit df3d878

Please sign in to comment.