mirror of
https://github.com/bootandy/dust.git
synced 2026-06-08 11:29:05 +03:00
Tests refactor: Neaten test
This commit is contained in:
@@ -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() {
|
||||||
|
|||||||
Reference in New Issue
Block a user