Tests refactor: Neaten test

This commit is contained in:
andy.boot
2022-08-20 10:22:35 +01:00
parent dc5b7b2c2e
commit d477145694
+6 -6
View File
@@ -25,12 +25,12 @@ fn copy_test_data(dir: &str) {
.arg("/tmp/".to_owned() + &*last_part_of_dir) .arg("/tmp/".to_owned() + &*last_part_of_dir)
.ok(); .ok();
match Command::new("cp").arg("-r").arg(dir).arg("/tmp/").ok() { let _ = Command::new("cp")
Ok(_) => {} .arg("-r")
Err(err) => { .arg(dir)
eprintln!("Error copying directory {:?}", err); .arg("/tmp/")
} .ok()
}; .map_err(|err| eprintln!("Error copying directory for test setup\n{:?}", err));
} }
fn initialize() { fn initialize() {