summaryrefslogtreecommitdiff
path: root/test_util/src
diff options
context:
space:
mode:
authorYosi Pramajaya <yosi.pramajaya@gmail.com>2021-02-24 21:18:35 +0700
committerGitHub <noreply@github.com>2021-02-24 15:18:35 +0100
commitf6a80f34d9f750e6c9c6c40f57211fc95befdf7a (patch)
treede649eb48344255fd4a726364c95c46c28886731 /test_util/src
parent9cc7e32e37e6708980abc051f2cb71526c175d88 (diff)
test: Fix --reload in integration_tests (#9345)
This commit removes redundant "--reload" args because "util::deno_cmd" recreates "DENO_DIR". This commit also fixes ta_reload in integration tests to actually test reload.
Diffstat (limited to 'test_util/src')
-rw-r--r--test_util/src/lib.rs8
1 files changed, 6 insertions, 2 deletions
diff --git a/test_util/src/lib.rs b/test_util/src/lib.rs
index 8dcd4f623..544015413 100644
--- a/test_util/src/lib.rs
+++ b/test_util/src/lib.rs
@@ -1151,11 +1151,15 @@ pub fn new_deno_dir() -> TempDir {
}
pub fn deno_cmd() -> Command {
- let e = deno_exe_path();
let deno_dir = new_deno_dir();
+ deno_cmd_with_deno_dir(deno_dir.path())
+}
+
+pub fn deno_cmd_with_deno_dir(deno_dir: &std::path::Path) -> Command {
+ let e = deno_exe_path();
assert!(e.exists());
let mut c = Command::new(e);
- c.env("DENO_DIR", deno_dir.path());
+ c.env("DENO_DIR", deno_dir);
c
}