Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
erp5
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
Paul Graydon
erp5
Commits
e4d59a25
Commit
e4d59a25
authored
Sep 15, 2011
by
Arnaud Fontaine
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Skip empty results file when generating reports.
parent
371a7668
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
0 deletions
+6
-0
erp5/util/benchmark/report.py
erp5/util/benchmark/report.py
+6
-0
No files found.
erp5/util/benchmark/report.py
View file @
e4d59a25
...
@@ -223,6 +223,7 @@ from matplotlib.backends.backend_pdf import PdfPages
...
@@ -223,6 +223,7 @@ from matplotlib.backends.backend_pdf import PdfPages
import
glob
import
glob
import
os
import
os
import
sys
import
re
import
re
user_re
=
re
.
compile
(
'-(
\
d+)use
r
s-'
)
user_re
=
re
.
compile
(
'-(
\
d+)use
r
s-'
)
...
@@ -238,6 +239,11 @@ def generateReport():
...
@@ -238,6 +239,11 @@ def generateReport():
per_nb_users_report_dict
=
{}
per_nb_users_report_dict
=
{}
for
filename
in
filename_iter
:
for
filename
in
filename_iter
:
# There may be no results at all in case of errors
if
not
os
.
stat
(
filename
).
st_size
:
print
>>
sys
.
stderr
,
"Ignoring empty file %s"
%
filename
continue
report_dict
=
per_nb_users_report_dict
.
setdefault
(
report_dict
=
per_nb_users_report_dict
.
setdefault
(
int
(
user_re
.
search
(
filename
).
group
(
1
)),
{
'filename'
:
[]})
int
(
user_re
.
search
(
filename
).
group
(
1
)),
{
'filename'
:
[]})
...
...
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