[tests] Move era_check tests to Rust

This commit is contained in:
Ming-Hung Tsai
2021-09-29 21:06:44 +08:00
parent 0215b5fecd
commit 321fce882f
3 changed files with 150 additions and 77 deletions

View File

@@ -159,6 +159,38 @@ where
rust_cmd("cache_repair", args)
}
pub fn era_check_cmd<I>(args: I) -> Command
where
I: IntoIterator,
I::Item: Into<OsString>,
{
rust_cmd("era_check", args)
}
pub fn era_dump_cmd<I>(args: I) -> Command
where
I: IntoIterator,
I::Item: Into<OsString>,
{
rust_cmd("era_dump", args)
}
pub fn era_restore_cmd<I>(args: I) -> Command
where
I: IntoIterator,
I::Item: Into<OsString>,
{
rust_cmd("era_restore", args)
}
pub fn era_repair_cmd<I>(args: I) -> Command
where
I: IntoIterator,
I::Item: Into<OsString>,
{
rust_cmd("era_repair", args)
}
//------------------------------------------
pub mod msg {