diff options
author | Adilson Schmitt Junior <adilsonschj@gmail.com> | 2022-05-02 21:43:03 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-05-02 15:43:03 -0400 |
commit | 256dcb058ac2dd2a935076922265278c56264050 (patch) | |
tree | 52e1e8557ab7c7405c0373f52bb51cafdd003d14 /test_util/src | |
parent | 66b9187a2dd2ea96e760b9bcd81a578dd338147d (diff) |
fix(test/bench): accept file protocol module specifier CLI args (#14429)
Diffstat (limited to 'test_util/src')
-rw-r--r-- | test_util/src/lib.rs | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/test_util/src/lib.rs b/test_util/src/lib.rs index ee8c363eb..59a777d40 100644 --- a/test_util/src/lib.rs +++ b/test_util/src/lib.rs @@ -1728,18 +1728,18 @@ pub fn run_powershell_script_file( } #[derive(Debug, Default)] -pub struct CheckOutputIntegrationTest { - pub args: &'static str, - pub args_vec: Vec<&'static str>, - pub output: &'static str, - pub input: Option<&'static str>, - pub output_str: Option<&'static str>, +pub struct CheckOutputIntegrationTest<'a> { + pub args: &'a str, + pub args_vec: Vec<&'a str>, + pub output: &'a str, + pub input: Option<&'a str>, + pub output_str: Option<&'a str>, pub exit_code: i32, pub http_server: bool, pub envs: Vec<(String, String)>, } -impl CheckOutputIntegrationTest { +impl<'a> CheckOutputIntegrationTest<'a> { pub fn run(&self) { let args = if self.args_vec.is_empty() { std::borrow::Cow::Owned(self.args.split_whitespace().collect::<Vec<_>>()) |