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/tests/integration_tests.rs | |
parent | ee00b7c8973668daf7f4c3876a25b282a3b8e313 (diff) |
fix(test): ensure coverage dir exists (#10717)
Diffstat (limited to 'cli/tests/integration_tests.rs')
-rw-r--r-- | cli/tests/integration_tests.rs | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/cli/tests/integration_tests.rs b/cli/tests/integration_tests.rs index aff073d0d..d3e578476 100644 --- a/cli/tests/integration_tests.rs +++ b/cli/tests/integration_tests.rs @@ -4425,12 +4425,13 @@ console.log("finish"); #[test] fn branch() { let tempdir = TempDir::new().expect("tempdir fail"); + let tempdir = tempdir.path().join("cov"); let status = util::deno_cmd() .current_dir(util::root_path()) .arg("test") .arg("--quiet") .arg("--unstable") - .arg(format!("--coverage={}", tempdir.path().to_str().unwrap())) + .arg(format!("--coverage={}", tempdir.to_str().unwrap())) .arg("cli/tests/coverage/branch_test.ts") .stdout(std::process::Stdio::piped()) .stderr(std::process::Stdio::inherit()) @@ -4444,7 +4445,7 @@ console.log("finish"); .arg("coverage") .arg("--quiet") .arg("--unstable") - .arg(format!("{}/", tempdir.path().to_str().unwrap())) + .arg(format!("{}/", tempdir.to_str().unwrap())) .stdout(std::process::Stdio::piped()) .stderr(std::process::Stdio::inherit()) .output() @@ -4473,7 +4474,7 @@ console.log("finish"); .arg("--quiet") .arg("--unstable") .arg("--lcov") - .arg(format!("{}/", tempdir.path().to_str().unwrap())) + .arg(format!("{}/", tempdir.to_str().unwrap())) .stdout(std::process::Stdio::piped()) .stderr(std::process::Stdio::inherit()) .output() |