Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gevent
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
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
gevent
Commits
fccb281d
Commit
fccb281d
authored
May 15, 2010
by
Denis Bilenko
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
testrunner.py: do not print stdout when -q if passed even when there are errors
parent
5984ea7f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
4 deletions
+6
-4
greentest/testrunner.py
greentest/testrunner.py
+6
-4
No files found.
greentest/testrunner.py
View file @
fccb281d
...
...
@@ -260,7 +260,8 @@ def run_subprocess(arg, options):
if
module_name
.
endswith
(
'.py'
):
module_name
=
module_name
[:
-
3
]
output
=
output
.
replace
(
' (__main__.'
,
' ('
+
module_name
+
'.'
)
return
retcode
[
0
],
output
output_printed
=
options
.
verbosity
>=
2
return
retcode
[
0
],
output
,
output_printed
def
spawn_subprocess
(
arg
,
options
):
...
...
@@ -281,14 +282,15 @@ def spawn_subprocess(arg, options):
'retcode'
:
'TIMEOUT'
}
row_id
=
store_record
(
options
.
db
,
'test'
,
params
)
params
[
'id'
]
=
row_id
retcode
,
output
=
run_subprocess
(
arg
,
options
)
retcode
,
output
,
output_printed
=
run_subprocess
(
arg
,
options
)
if
len
(
output
)
>
OUTPUT_LIMIT
:
output
=
output
[:
OUTPUT_LIMIT
]
+
'<AbridgedOutputWarning>'
if
retcode
:
sys
.
stdout
.
write
(
output
)
if
not
output_printed
and
options
.
verbosity
>=
0
:
sys
.
stdout
.
write
(
output
)
print
'%s failed with code %s'
%
(
arg
,
retcode
)
elif
retcode
==
0
:
if
options
.
verbosity
==
1
:
# // if verbosity is 2 then output is always printed by run_subprocess
if
not
output_printed
and
options
.
verbosity
>=
1
:
sys
.
stdout
.
write
(
output
)
print
'%s passed'
%
arg
success
=
True
...
...
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