Use sanoid --force-update instead of
manually deleting snapshot cache
This commit is contained in:
parent
d9da30dadd
commit
4c9a9e2eb8
|
@ -68,7 +68,7 @@ class TestsWithZpool(unittest.TestCase):
|
|||
subprocess.run(["zpool", "create", "-f", pool_name2, pool_disk_image2], check=True)
|
||||
|
||||
# Clear the snapshot cache in between
|
||||
subprocess.run(["rm", "-f", "/var/cache/sanoid/snapshots.txt"])
|
||||
subprocess.run([sanoid_cmd, "--force-update"])
|
||||
|
||||
def tearDown(self):
|
||||
"""Clean up on either passed or failed tests"""
|
||||
|
|
Loading…
Reference in New Issue