Skip to content

Commit 81bcc8a

Browse files
committed
chore: get_kani_list command
1 parent 2446466 commit 81bcc8a

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

tests/kani_list.rs

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -20,14 +20,12 @@ fn validate_kani_list_json() -> Result<()> {
2020
}
2121

2222
fn get_kani_list(file: &str) -> KaniList {
23-
// kani list -Zlist --format=json file.rs
24-
let output = Command::new("kani")
25-
.args(["list", "-Zlist", "-Zfunction-contracts", "--format=json", file])
26-
.output()
27-
.unwrap();
23+
// kani list -Zlist -Zfunction-contracts --format=json file.rs
24+
let args = ["list", "-Zlist", "-Zfunction-contracts", "--format=json", file];
25+
let output = Command::new("kani").args(args).output().unwrap();
2826
assert!(
2927
output.status.success(),
30-
"Failed to run `kani list -Zlist --format=json {file}`:\n{}",
28+
"Failed to run `kani list -Zlist -Zfunction-contracts --format=json {file}`:\n{}",
3129
std::str::from_utf8(&output.stderr).unwrap()
3230
);
3331

0 commit comments

Comments
 (0)