From 256dcb058ac2dd2a935076922265278c56264050 Mon Sep 17 00:00:00 2001 From: Adilson Schmitt Junior Date: Mon, 2 May 2022 21:43:03 +0200 Subject: fix(test/bench): accept file protocol module specifier CLI args (#14429) --- test_util/src/lib.rs | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'test_util/src') 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::>()) -- cgit v1.2.3