From 72add24d8704cc611f9b9de0170961a996aa1a59 Mon Sep 17 00:00:00 2001 From: Matthias Beyer Date: Tue, 30 Oct 2018 18:40:50 +0100 Subject: [PATCH] libimagutil: Move from error-chain to failure Signed-off-by: Matthias Beyer --- lib/etc/libimagutil/src/testing.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/etc/libimagutil/src/testing.rs b/lib/etc/libimagutil/src/testing.rs index 70ec7915..d15ab383 100644 --- a/lib/etc/libimagutil/src/testing.rs +++ b/lib/etc/libimagutil/src/testing.rs @@ -50,9 +50,9 @@ macro_rules! make_mock_app { use clap::{App, ArgMatches}; use libimagrt::spec::CliSpec; use libimagrt::runtime::Runtime; - use libimagrt::error::RuntimeError; use libimagrt::configuration::InternalConfiguration; use toml::Value; + use failure::Error; #[derive(Clone)] struct MockLinkApp<'a> { @@ -95,8 +95,8 @@ macro_rules! make_mock_app { } #[allow(unused)] - pub fn generate_test_runtime<'a>(mut args: Vec<&'static str>) -> Result, RuntimeError> { - let mut cli_args = vec![$appname]; + pub fn generate_test_runtime<'a>(mut args: Vec<&'static str>) -> Result, Error> { + let mut cli_args = vec![$appname, "--rtp", "/tmp"]; cli_args.append(&mut args); @@ -106,7 +106,7 @@ macro_rules! make_mock_app { #[allow(unused)] pub fn reset_test_runtime<'a>(mut args: Vec<&'static str>, old_runtime: Runtime) - -> Result, RuntimeError> + -> Result, Error> { let mut cli_args = vec![$appname, "--rtp", "/tmp"];