diff options
author | David Sherret <dsherret@users.noreply.github.com> | 2023-04-01 10:04:56 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-04-01 10:04:56 -0400 |
commit | 23b9be7b37c40f8c29f9ce50439ad0e25b85282c (patch) | |
tree | f2bea2e8daf5c02113e036fe72010bbc3fb61ff4 /test_util/src/lib.rs | |
parent | c162647020c26de1d27064b488ca11525f1bc4bf (diff) |
fix(check): ensure diagnostics caused by changes in other files get invalidated between runs (#18541)
Regression caused by the performance improvement in #18329. Figuring
this out was hard. It's luckily still fast after this change.
Closes #18516
Diffstat (limited to 'test_util/src/lib.rs')
-rw-r--r-- | test_util/src/lib.rs | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/test_util/src/lib.rs b/test_util/src/lib.rs index 5c6bc97f7..0b6ce1615 100644 --- a/test_util/src/lib.rs +++ b/test_util/src/lib.rs @@ -2076,13 +2076,13 @@ impl<'a> CheckOutputIntegrationTest<'a> { pub fn output(&self) -> TestCommandOutput { let mut context_builder = TestContextBuilder::default(); if self.temp_cwd { - context_builder.use_temp_cwd(); + context_builder = context_builder.use_temp_cwd(); } if let Some(dir) = &self.copy_temp_dir { - context_builder.use_copy_temp_dir(dir); + context_builder = context_builder.use_copy_temp_dir(dir); } if self.http_server { - context_builder.use_http_server(); + context_builder = context_builder.use_http_server(); } let context = context_builder.build(); @@ -2090,22 +2090,22 @@ impl<'a> CheckOutputIntegrationTest<'a> { let mut command_builder = context.new_command(); if !self.args.is_empty() { - command_builder.args(self.args); + command_builder = command_builder.args(self.args); } if !self.args_vec.is_empty() { - command_builder.args_vec(self.args_vec.clone()); + command_builder = command_builder.args_vec(self.args_vec.clone()); } if let Some(input) = &self.input { - command_builder.stdin(input); + command_builder = command_builder.stdin(input); } for (key, value) in &self.envs { - command_builder.env(key, value); + command_builder = command_builder.env(key, value); } if self.env_clear { - command_builder.env_clear(); + command_builder = command_builder.env_clear(); } if let Some(cwd) = &self.cwd { - command_builder.cwd(cwd); + command_builder = command_builder.cwd(cwd); } command_builder.run() |