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
4fc69f4b
Commit
4fc69f4b
authored
Sep 09, 2009
by
Denis Bilenko
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
generate_report.py: nicer output
parent
42d321fe
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
4 deletions
+5
-4
greentest/generate_report.py
greentest/generate_report.py
+5
-4
No files found.
greentest/generate_report.py
View file @
4fc69f4b
...
...
@@ -291,24 +291,25 @@ def generate_raw_results(path, database):
sys
.
stderr
.
write
(
'
\
n
'
)
def
main
(
db
):
path
=
os
.
path
.
dirname
(
db
)
file_path
=
os
.
path
.
join
(
path
,
'index.html'
)
print
'%s: generating %s'
%
(
db
,
file_path
)
table
,
rows
,
columns
,
common_fields
=
make_table
(
db
,
row
=
row_def
,
column
=
column_def
)
if
common_fields
:
pprint
(
common_fields
)
pprint
(
common_fields
)
# this fields are the same for every item processed
for
field
in
[
'runs'
,
'errors'
,
'fails'
,
'timeouts'
,
'exitcode'
,
'id'
,
'output'
]:
common_fields
.
pop
(
field
,
None
)
table
=
format_table
(
table
,
row_def
,
rows
,
column_def
,
columns
,
common_fields
)
report
=
format_html
(
table
,
common_fields
)
path
=
'../testresults/'
try
:
os
.
makedirs
(
path
)
except
OSError
,
ex
:
if
'File exists'
not
in
str
(
ex
):
raise
file_path
=
os
.
path
.
join
(
path
,
'index.html'
)
file
(
file_path
,
'w'
).
write
(
report
)
print
'%s: written %s
'
%
(
db
,
file_path
)
print
'%s: written %s
: %s rows x %s columns'
%
(
db
,
file_path
,
len
(
rows
),
len
(
columns
)
)
generate_raw_results
(
path
,
db
)
if
__name__
==
'__main__'
:
...
...
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