Revert "Try clearing the cache iff the summary pickle doesn't load."
This reverts commit a04c19c760.
- This caused problems when the api of the pickled objects changed.
This commit is contained in:
parent
5a26b9fd13
commit
e63dd40320
2 changed files with 18 additions and 9 deletions
|
|
@ -219,12 +219,13 @@ class MainTestCase(unittest.TestCase):
|
|||
# tmp_total = _tmp_total()
|
||||
foo_path = os.path.join(root_path, "foo")
|
||||
open(foo_path, "w").close()
|
||||
__main__.manage_cache(root_path)
|
||||
with __main__.chdir(root_path):
|
||||
with contextlib.redirect_stdout(io.StringIO()):
|
||||
__main__.main(root_path, loop, worker_count=2,
|
||||
is_being_tested=True)
|
||||
for file_name in ["summary.pickle", "log", "foo-metadata",
|
||||
"foo-contents"]:
|
||||
for file_name in ["summary.pickle", "creation_time", "log",
|
||||
"foo-metadata", "foo-contents"]:
|
||||
self.assertTrue(os.path.exists(".vigil/" + file_name))
|
||||
self.assertEqual(_mount_total(), mount_total)
|
||||
# self.assertEqual(_tmp_total(), tmp_total)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue