Merge pull request #1045 from matthiasbeyer/libimagutil/bugfix-testing

Bugfix: Fix macro to use the appname instead of hardcoded values
This commit is contained in:
Matthias Beyer 2017-09-02 14:09:20 +02:00 committed by GitHub
commit 147c264ee3

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> {
let mut cli_args = vec!["imag-link", "--rtp", "/tmp"];
let mut cli_args = vec![$appname, "--rtp", "/tmp"];
cli_args.append(&mut args);