From 737c279698c1267582ce59628c430ec11d71c1a3 Mon Sep 17 00:00:00 2001 From: Philipp Oppermann Date: Sat, 2 Nov 2019 15:34:18 +0100 Subject: [PATCH] Add dbg output --- src/config.rs | 2 +- src/subcommand/runner.rs | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/config.rs b/src/config.rs index ce7e964..8833cc2 100644 --- a/src/config.rs +++ b/src/config.rs @@ -77,7 +77,7 @@ pub(crate) fn read_config_inner(manifest_path: &Path) -> Result { - config.test_success_exit_code = Some(exit_code as i32); + config.test_success_exit_code = Some(dbg!(exit_code) as i32); } ("run-command", Value::Array(array)) => { let mut command = Vec::new(); diff --git a/src/subcommand/runner.rs b/src/subcommand/runner.rs index 90bf4e8..03f5667 100644 --- a/src/subcommand/runner.rs +++ b/src/subcommand/runner.rs @@ -72,8 +72,8 @@ pub(crate) fn runner(args: RunnerArgs) -> Result { .map_err(|e| format!("Failed to wait for QEMU process: {}", e))?; return Err(ErrorMessage::from("Timed Out")); } - Some(exit_status) => match config.test_success_exit_code { - Some(code) if exit_status.code() == Some(code) => 0, + Some(exit_status) => match dbg!(config.test_success_exit_code) { + Some(code) if dbg!(exit_status.code()) == dbg!(Some(code)) => 0, other => other.unwrap_or(1), }, } @@ -84,5 +84,5 @@ pub(crate) fn runner(args: RunnerArgs) -> Result { status.code().unwrap_or(1) }; - Ok(exit_code) + dbg!(Ok(exit_code)) }