Use String instead of NumericType for paramater in Command

This commit is contained in:
Hasan Ibraheem authored and David Peter committed 2019-10-20 13:45:41 +02:00
1 parent 7fe65c569f
commit 538691e999
3 files changed
+11 -11

No files matched your search

+3 -3
View File
@@ -225,7 +225,7 @@ pub fn run_benchmark(
&values[num]
};
match cmd.get_parameter() {
Some((param, value)) => Command::new_parametrized(preparation_command, param, value),
Some((param, value)) => Command::new_parametrized(preparation_command, param, value.clone()),
None => Command::new(preparation_command),
}
});
@@ -421,7 +421,7 @@ pub fn run_benchmark(
.cleanup_command
.as_ref()
.map(|cleanup_command| match cmd.get_parameter() {
Some((param, value)) => Command::new_parametrized(cleanup_command, param, value),
Some((param, value)) => Command::new_parametrized(cleanup_command, param, value.clone()),
None => Command::new(cleanup_command),
});
run_cleanup_command(&options.shell, &cleanup_cmd, options.show_output)?;
@@ -436,6 +436,6 @@ pub fn run_benchmark(
t_min,
t_max,
times_real,
cmd.get_parameter().map(|p| p.1),
cmd.get_parameter().as_ref().map(|p| p.1.clone()),
))
}