diff options
author | David Sherret <dsherret@users.noreply.github.com> | 2022-05-23 12:04:28 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-05-23 12:04:28 -0400 |
commit | 69be1f3cf7d11bb6b440f5d1e65988ed7c76f53d (patch) | |
tree | 561a478ac1861ded4fe767c3f3bda0745d1d269c /test_util/src/lib.rs | |
parent | 3c97bbe165ef0c5e4fa9b9eb637ff481d8c86884 (diff) |
fix: deno task should actually use current exe for `deno` command (#14705)
Diffstat (limited to 'test_util/src/lib.rs')
-rw-r--r-- | test_util/src/lib.rs | 4 |
1 files changed, 4 insertions, 0 deletions
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()); |