diff options
author | Yoshiya Hinosawa <stibium121@gmail.com> | 2021-05-21 22:57:00 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-05-21 22:57:00 +0900 |
commit | b3f2502b32f1a5c9583248012230d23099f9b337 (patch) | |
tree | 9c2f8cf6309405015a0d835c379726a63b8d771a /cli/main.rs | |
parent | ee00b7c8973668daf7f4c3876a25b282a3b8e313 (diff) |
fix(test): ensure coverage dir exists (#10717)
Diffstat (limited to 'cli/main.rs')
-rw-r--r-- | cli/main.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/cli/main.rs b/cli/main.rs index 3b147ffcc..aa144d1de 100644 --- a/cli/main.rs +++ b/cli/main.rs @@ -925,6 +925,7 @@ async fn test_command( concurrent_jobs: usize, ) -> Result<(), AnyError> { if let Some(ref coverage_dir) = flags.coverage_dir { + std::fs::create_dir_all(&coverage_dir)?; env::set_var( "DENO_UNSTABLE_COVERAGE_DIR", PathBuf::from(coverage_dir).canonicalize()?, |