Modified to use AfterSuite
@@ -275,7 +275,7 @@ spec:
Expect(err).ShouldNot(HaveOccurred(), "stdout=%s, stderr=%s", stdout, stderr)
})
- It("should delete unnecessary LVs", func() {
+ AfterSuite(func() {
for _, lv := range targetLVs {
stdout, stderr, err := execAtLocal("sudo", nil, "umount", "/dev/topolvm/"+lv.Status.VolumeID)
Expect(err).ShouldNot(HaveOccurred(), "stdout=%s, stderr=%s", stdout, stderr)
