From 69be1f3cf7d11bb6b440f5d1e65988ed7c76f53d Mon Sep 17 00:00:00 2001 From: David Sherret Date: Mon, 23 May 2022 12:04:28 -0400 Subject: fix: deno task should actually use current exe for `deno` command (#14705) --- test_util/src/lib.rs | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'test_util/src') diff --git a/test_util/src/lib.rs b/test_util/src/lib.rs index 0eea21b04..1373f758d 100644 --- a/test_util/src/lib.rs +++ b/test_util/src/lib.rs @@ -1737,6 +1737,7 @@ pub struct CheckOutputIntegrationTest<'a> { pub exit_code: i32, pub http_server: bool, pub envs: Vec<(String, String)>, + pub env_clear: bool, } impl<'a> CheckOutputIntegrationTest<'a> { @@ -1766,6 +1767,9 @@ impl<'a> CheckOutputIntegrationTest<'a> { println!("deno_exe args {}", self.args); println!("deno_exe testdata path {:?}", &testdata_dir); command.args(args.iter()); + if self.env_clear { + command.env_clear(); + } command.envs(self.envs.clone()); command.current_dir(&testdata_dir); command.stdin(Stdio::piped()); -- cgit v1.2.3