From fbbcf325b8bbe72f924da6a7cdb128d973ef0026 Mon Sep 17 00:00:00 2001 From: Melody Horn Date: Mon, 11 Nov 2024 14:46:19 -0700 Subject: fix conditional assignment when original is inherited --- tests/update_logic.rs | 14 +++----------- 1 file changed, 3 insertions(+), 11 deletions(-) (limited to 'tests/update_logic.rs') diff --git a/tests/update_logic.rs b/tests/update_logic.rs index 9e37b19..0c97ad5 100644 --- a/tests/update_logic.rs +++ b/tests/update_logic.rs @@ -1,19 +1,11 @@ use std::fs; -use std::path::Path; -use std::process::{Command, Output}; -use eyre::{Result, WrapErr}; +use eyre::WrapErr; use std::thread::sleep; use std::time::Duration; -type R = Result<()>; - -fn make(dir: impl AsRef) -> Result { - Command::new(env!("CARGO_BIN_EXE_makers")) - .current_dir(dir) - .output() - .wrap_err("") -} +mod utils; +use utils::{make, R}; #[test] fn basic_test() -> R { -- cgit v1.2.3