Delete temp disk images as part of teardown
This commit is contained in:
parent
49589e2a17
commit
867b755bb1
|
@ -51,7 +51,9 @@ class TestsWithZpool(unittest.TestCase):
|
||||||
def tearDown(self):
|
def tearDown(self):
|
||||||
"""Clean up on either passed or failed tests"""
|
"""Clean up on either passed or failed tests"""
|
||||||
subprocess.run(["zpool", "export", pool_name1])
|
subprocess.run(["zpool", "export", pool_name1])
|
||||||
|
subprocess.run(["rm", "export", pool_disk_image1])
|
||||||
subprocess.run(["zpool", "export", pool_name2])
|
subprocess.run(["zpool", "export", pool_name2])
|
||||||
|
subprocess.run(["rm", "export", pool_disk_image2])
|
||||||
|
|
||||||
def test_with_zpool_no_snapshots(self):
|
def test_with_zpool_no_snapshots(self):
|
||||||
"""Test what happens if there is a zpool, but with no snapshots"""
|
"""Test what happens if there is a zpool, but with no snapshots"""
|
||||||
|
|
Loading…
Reference in New Issue