diff options
author | Casper Beyer <caspervonb@pm.me> | 2021-05-19 21:33:22 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-05-19 15:33:22 +0200 |
commit | 42f76670fc308e2c78e2e2069064baf1e329d6a6 (patch) | |
tree | c4ab0f7f6e187152e0f9e582fe855d9264fc3620 | |
parent | 8a9b83b3ea782c73942df72b5cada2302fb1b8c3 (diff) |
fix(cli): canonicalize coverage dir (#10364)
-rw-r--r-- | cli/main.rs | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/cli/main.rs b/cli/main.rs index 5a5972e92..3b147ffcc 100644 --- a/cli/main.rs +++ b/cli/main.rs @@ -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. |