Skip to content

Commit

Permalink
Fix formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
bgurney-rh committed Apr 10, 2024
1 parent 2b28322 commit 7834f80
Showing 1 changed file with 16 additions and 5 deletions.
21 changes: 16 additions & 5 deletions tests/stratis_min.rs
Original file line number Diff line number Diff line change
Expand Up @@ -315,11 +315,13 @@ fn test_stratis_min_pool_is_bound() {
test_with_stratisd_min_sim(stratis_min_pool_is_bound);
}


fn stratis_min_pool_has_passphrase() {
stratis_min_create_pool_and_fs();
let mut cmd = Command::cargo_bin("stratis-min").unwrap();
cmd.arg("pool").arg("has-passphrase").arg("--name").arg("pn");
cmd.arg("pool")
.arg("has-passphrase")
.arg("--name")
.arg("pn");
cmd.assert().success();
}

Expand Down Expand Up @@ -349,13 +351,22 @@ fn test_stratis_min_pool_stop_nonexistent_uuid() {
fn stratis_min_init_cache_add_data_add_cache() {
stratis_min_create_pool_and_fs();
let mut cmd = Command::cargo_bin("stratis-min").unwrap();
cmd.arg("pool").arg("init-cache").arg("pn").arg("/dev/nonexistent1");
cmd.arg("pool")
.arg("init-cache")
.arg("pn")
.arg("/dev/nonexistent1");
cmd.assert().success();
let mut cmd = Command::cargo_bin("stratis-min").unwrap();
cmd.arg("pool").arg("add-data").arg("pn").arg("/dev/nonexistent2");
cmd.arg("pool")
.arg("add-data")
.arg("pn")
.arg("/dev/nonexistent2");
cmd.assert().success();
let mut cmd = Command::cargo_bin("stratis-min").unwrap();
cmd.arg("pool").arg("add-cache").arg("pn").arg("/dev/nonexistent3");
cmd.arg("pool")
.arg("add-cache")
.arg("pn")
.arg("/dev/nonexistent3");
cmd.assert().success();
}

Expand Down

0 comments on commit 7834f80

Please sign in to comment.