def tearDown(self):
"""
Clear all PV,VG, LV and snapshots created by the test.
"""
# Remove created VG and unmount from base directory
errs = []
for ramdisk in self.ramdisks:
try:
lv_utils.vg_ramdisk_cleanup(*ramdisk)
except Exception as exc:
errs.append("Fail to cleanup ramdisk %s: %s" % (ramdisk, exc))
if errs:
self.error("\n".join(errs))
os.removedirs(self.mount_loc)
评论列表
文章目录