Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
slapos.toolbox
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
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Rafael Monnerat
slapos.toolbox
Commits
e19eda2e
Commit
e19eda2e
authored
Apr 14, 2017
by
Rafael Monnerat
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
runnertest: Verbose data via Print while run tests.
parent
dc55d680
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
1 deletion
+6
-1
slapos/runner/runnertest.py
slapos/runner/runnertest.py
+6
-1
No files found.
slapos/runner/runnertest.py
View file @
e19eda2e
...
@@ -591,6 +591,11 @@ class SlaprunnerTestCase(unittest.TestCase):
...
@@ -591,6 +591,11 @@ class SlaprunnerTestCase(unittest.TestCase):
os
.
environ
[
'RUNNER_CONFIG'
]
=
runner_config_old
os
.
environ
[
'RUNNER_CONFIG'
]
=
runner_config_old
class
PrintStringIO
(
StringIO
.
StringIO
):
def
write
(
self
,
data
):
StringIO
.
write
(
self
,
data
)
print
data
def
main
():
def
main
():
"""
"""
Function meant to be run by erp5testnode.
Function meant to be run by erp5testnode.
...
@@ -618,7 +623,7 @@ def main():
...
@@ -618,7 +623,7 @@ def main():
start_time
=
time
.
time
()
start_time
=
time
.
time
()
stderr
=
StringIO
.
StringIO
()
stderr
=
Print
StringIO
()
suite
=
unittest
.
TestLoader
().
loadTestsFromTestCase
(
SlaprunnerTestCase
)
suite
=
unittest
.
TestLoader
().
loadTestsFromTestCase
(
SlaprunnerTestCase
)
test_result
=
unittest
.
TextTestRunner
(
verbosity
=
2
,
stream
=
stderr
).
run
(
suite
)
test_result
=
unittest
.
TextTestRunner
(
verbosity
=
2
,
stream
=
stderr
).
run
(
suite
)
...
...
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