diff --git a/Cargo.toml b/Cargo.toml index 1cbcd2b..2cba546 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -6,5 +6,5 @@ members = [ ] [workspace.dependencies] -cmd_lib = "0.9" -tmp_env = "0.1.1" \ No newline at end of file +cmd_lib = "2.0.1" +tmp_env = "0.1.1" diff --git a/README.md b/README.md index 6f9879b..f4a81c8 100644 --- a/README.md +++ b/README.md @@ -8,6 +8,8 @@ ## Requirements for the framework +Rust 1.88 or later is required. + These modules must be installed in the system to get the framework working. - xfs, xfsprogs diff --git a/writeboost-tests/tests/scenario.rs b/writeboost-tests/tests/scenario.rs index 7f373f6..77a3ad5 100644 --- a/writeboost-tests/tests/scenario.rs +++ b/writeboost-tests/tests/scenario.rs @@ -88,12 +88,14 @@ fn dbench() { XFS::format(&wb); let fs = XFS::new(&wb); let pwd = &fs.mount_point; - let options = vec!["-t 60 1", "-S -t 60 4", "-s -t 60 4"]; + let options = vec![ + vec!["-t", "60", "1"], + vec!["-S", "-t", "60", "4"], + vec!["-s", "-t", "60", "4"], + ]; for option in options { let _pwd = tmp_env::set_current_dir(pwd).unwrap(); - // We use run_cmd function instead of macro here - // https://github.com/rust-shell-script/rust_cmd_lib/issues/17 - run_cmd(format!("dbench {}", option)).unwrap(); + run_cmd!(dbench $[option]).unwrap(); } }