Skip to content

Commit

Permalink
test/includes/microcloud: blkdiscard the TEST_STORAGE_SOURCE disk
Browse files Browse the repository at this point in the history
Signed-off-by: Simon Deziel <[email protected]>
  • Loading branch information
simondeziel committed Apr 21, 2024
1 parent 6333459 commit 1756b25
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions microcloud/test/includes/microcloud.sh
Original file line number Diff line number Diff line change
Expand Up @@ -871,6 +871,7 @@ setup_lxd_project() {
lxc storage create zpool zfs volume.size=5GiB
else
sudo wipefs --all --quiet "${TEST_STORAGE_SOURCE}"
sudo blkdiscard "${TEST_STORAGE_SOURCE}" || true
lxc storage create zpool zfs source="${TEST_STORAGE_SOURCE}"
fi

Expand Down

0 comments on commit 1756b25

Please sign in to comment.