Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
slapos.core
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Nicolas Wavrant
slapos.core
Commits
dd8f4b5a
Commit
dd8f4b5a
authored
Dec 27, 2019
by
Jérome Perrin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
testing/testcase: remove slapos log files after each test class
To isolate log files per test in the snapshots
parent
92c9a0fb
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
slapos/testing/testcase.py
slapos/testing/testcase.py
+4
-0
No files found.
slapos/testing/testcase.py
View file @
dd8f4b5a
...
@@ -401,6 +401,10 @@ class SlapOSInstanceTestCase(unittest.TestCase):
...
@@ -401,6 +401,10 @@ class SlapOSInstanceTestCase(unittest.TestCase):
"""Tear down class, stop the processes and destroy instance.
"""Tear down class, stop the processes and destroy instance.
"""
"""
cls
.
_cleanup
(
"{}.{}.tearDownClass"
.
format
(
cls
.
__module__
,
cls
.
__name__
))
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
@
classmethod
def
_storePartitionSnapshot
(
cls
,
name
):
def
_storePartitionSnapshot
(
cls
,
name
):
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment