[tests] Move era_restore tests to Rust

This commit is contained in:
Ming-Hung Tsai
2021-10-01 23:31:32 +08:00
parent 4cfe93570c
commit 8d3f65244d
3 changed files with 144 additions and 71 deletions
+1 -1
View File
@@ -26,7 +26,7 @@ pub fn mk_valid_md(td: &mut TestDir) -> Result<PathBuf> {
write_xml(&xml, &mut gen)?;
let _file = file_utils::create_sized_file(&md, 4096 * 4096);
run_ok(ERA_RESTORE, args!["-i", &xml, "-o", &md])?;
run_ok(era_restore_cmd(args!["-i", &xml, "-o", &md]))?;
Ok(md)
}