Commit dd8f4b5a authored by Jérome Perrin's avatar Jérome Perrin

testing/testcase: remove slapos log files after each test class

To isolate log files per test in the snapshots
parent 92c9a0fb
Pipeline #7360 failed with stage
in 0 seconds
......@@ -401,6 +401,10 @@ class SlapOSInstanceTestCase(unittest.TestCase):
"""Tear down class, stop the processes and destroy instance.
"""
cls._cleanup("{}.{}.tearDownClass".format(cls.__module__, cls.__name__))
if not cls._debug:
cls.logger.debug("cleaning up slapos log files in %s", cls.slap._log_directory)
for log_file in glob.glob(os.path.join(cls.slap._log_directory, '*')):
os.unlink(log_file)
@classmethod
def _storePartitionSnapshot(cls, name):
......
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