INNER CODE UNIT · Rust

clean_up_temp

openebs/mayastor · io-engine-tests/src/lib.rs:428

pub fn clean_up_temp() {
    let (_exit, _stdout, _stderr) = run_script::run(
        r#" rm -rf $1 "#,
        &vec!["/tmp/__test".into()],
        &run_script::ScriptOptions::new(),
    )
    .unwrap();
}

pub fn thread() -> Mthread {
    Mthread::primary()
}

pub fn dd_urandom_blkdev_test(device: &str) -> i32 {
    let (exit, stdout, stderr) = run_script::run(
        r#"
        dd if=/dev/urandom of=$1 oflag=direct bs=512 count=1 seek=6144
    "#,

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…