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 Oct 5, 2023
1 parent 55778b3 commit 5e1bafc
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 $(lsblk -lno NAME /dev/test/one | tail -1) || 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 5e1bafc

Please sign in to comment.