INNER CODE UNIT · Rust
delete_file
openebs/mayastor · io-engine-tests/src/lib.rs:319
pub fn delete_file(disks: &[String]) {
let output = Command::new("rm")
.args(["-rf"])
.args(disks)
.output()
.expect("failed to execute rm");
assert!(
output.status.success(),
"{}",
String::from_utf8_lossy(&output.stderr),
);
}
pub fn compare_files(a: &str, b: &str) {
let output = Command::new("cmp")
.args([a, b])
.output()