1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-11-28 16:20:57 -05:00

fix(cli): canonicalize coverage dir (#10364)

This commit is contained in:
Casper Beyer 2021-05-19 21:33:22 +08:00 committed by GitHub
parent 8a9b83b3ea
commit 42f76670fc
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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.