Skip to content

Commit

Permalink
test: Cleanup volume group in one non-destructive test
Browse files Browse the repository at this point in the history
Just janking out the disk will leave debris behind in /dev.
  • Loading branch information
mvollmer committed Sep 29, 2023
1 parent 6f8025a commit ddd3daa
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions test/verify/check-storage-mounting
Original file line number Diff line number Diff line change
Expand Up @@ -428,6 +428,11 @@ class TestStorageMountingLUKS(storagelib.StorageCase):

self.login_and_go("/storage")

self.addCleanup(m.execute,
"umount /run/data || true;"
"cryptsetup close $(cut -d' ' -f1 /etc/crypttab) || true;"
"vgremove --force test 2>/dev/null || true")

# Quickly make two logical volumes
disk = self.add_ram_disk()
b.wait_in_text("#drives", disk)
Expand Down

0 comments on commit ddd3daa

Please sign in to comment.