Пример #1
0
 def clean(self, force=False):
     for aname, a in list(self._archives.items()):
         a.clean(force=force)
         del self._archives[aname]
     # Probably we should not rely on _made_path and not bother if persistent removing it
     # if ((not self.persistent) or force) and self._made_path:
     #     lgr.debug("Removing the entire archives cache under %s", self.path)
     #     rmtemp(self.path)
     if (not self.persistent) or force:
         lgr.debug("Removing the entire archives cache under %s", self.path)
         rmtemp(self.path)
Пример #2
0
 def teardown_class(cls):
     cls._hpath.stop()
     rmtemp(cls._hpath.path)
Пример #3
0
 def teardown(self):
     assert_equal(self.pwd, getpwd())
     self.annex.precommit()  # so we close any outstanding batch process etc
     rmtemp(self.annex.path)
Пример #4
0
 def teardown_class(cls):
     cls._hpath.stop()
     rmtemp(cls._hpath.path)
Пример #5
0
 def teardown(self):
     # so we close any outstanding batch process etc
     self.annex.precommit()
     rmtemp(self.ds.path)