Use sanoid --force-update instead of

manually deleting snapshot cache
This commit is contained in:
Aaron Whitehouse 2022-03-23 21:23:11 +00:00
parent d9da30dadd
commit 4c9a9e2eb8
1 changed files with 1 additions and 1 deletions

View File

@ -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"""