Commit 4900dece authored by Jérome Perrin's avatar Jérome Perrin

software/erp5/test: fix snapshot collections in ZopeTestMixin

Test defining setUp and tearDown needs to call methods from super class,
where snapshots are collected.
parent 0cfcf327
Pipeline #19167 failed with stage
...@@ -585,10 +585,12 @@ class ZopeTestMixin(CrontabMixin): ...@@ -585,10 +585,12 @@ class ZopeTestMixin(CrontabMixin):
) )
def setUp(self): def setUp(self):
super(ZopeTestMixin, self).setUp()
# run logrotate a first time so that it create state files # run logrotate a first time so that it create state files
self._executeCrontabAtDate('logrotate', '2000-01-01') self._executeCrontabAtDate('logrotate', '2000-01-01')
def tearDown(self): def tearDown(self):
super(ZopeTestMixin, self).tearDown()
# reset logrotate status # reset logrotate status
logrotate_status = os.path.join( logrotate_status = os.path.join(
self.getComputerPartitionPath('zope-default'), self.getComputerPartitionPath('zope-default'),
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment