Bugfix: Fix macro to use the appname instead of hardcoded values

This commit is contained in:
Matthias Beyer 2017-09-02 10:28:34 +02:00
parent 1760c41975
commit b32245b03a

View file

@ -101,7 +101,7 @@ macro_rules! make_mock_app {
} }
pub fn generate_test_runtime<'a>(mut args: Vec<&'static str>) -> Result<Runtime<'a>, RuntimeError> { pub fn generate_test_runtime<'a>(mut args: Vec<&'static str>) -> Result<Runtime<'a>, RuntimeError> {
let mut cli_args = vec!["imag-link", "--rtp", "/tmp"]; let mut cli_args = vec![$appname, "--rtp", "/tmp"];
cli_args.append(&mut args); cli_args.append(&mut args);