From f6a80f34d9f750e6c9c6c40f57211fc95befdf7a Mon Sep 17 00:00:00 2001 From: Yosi Pramajaya Date: Wed, 24 Feb 2021 21:18:35 +0700 Subject: 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. --- test_util/src/lib.rs | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'test_util/src') 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 } -- cgit v1.2.3