Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
O
opencv
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
opencv
Commits
0e3a9eaf
Commit
0e3a9eaf
authored
Jun 21, 2013
by
Roman Donchenko
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Made Collector render property sets as dicts instead of tuples of pairs.
parent
2688e22c
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
3 deletions
+12
-3
xls-report.py
modules/ts/misc/xls-report.py
+12
-3
No files found.
modules/ts/misc/xls-report.py
View file @
0e3a9eaf
...
...
@@ -52,6 +52,12 @@ class Collector(object):
self
.
config_match_func
=
config_match_func
self
.
tests
=
{}
# Format a sorted sequence of pairs as if it was a dictionary.
# We can't just use a dictionary instead, since we want to preserve the sorted order of the keys.
@staticmethod
def
__format_config_cache_key
(
pairs
):
return
'{'
+
', '
.
join
(
repr
(
k
)
+
': '
+
repr
(
v
)
for
(
k
,
v
)
in
pairs
)
+
'}'
def
collect_from
(
self
,
xml_path
):
run
=
parseLogFile
(
xml_path
)
...
...
@@ -68,12 +74,15 @@ class Collector(object):
configuration
=
self
.
config_match_func
(
properties
)
if
configuration
is
None
:
logging
.
warning
(
'failed to match properties to a configuration:
%
r'
,
props_key
)
logging
.
warning
(
'failed to match properties to a configuration:
%
s'
,
Collector
.
__format_config_cache_key
(
props_key
))
else
:
same_config_props
=
[
it
[
0
]
for
it
in
self
.
__config_cache
.
iteritems
()
if
it
[
1
]
==
configuration
]
if
len
(
same_config_props
)
>
0
:
logging
.
warning
(
'property set
%
r matches the same configuration
%
r as property set
%
r'
,
props_key
,
configuration
,
same_config_props
[
0
])
logging
.
warning
(
'property set
%
s matches the same configuration
%
r as property set
%
s'
,
Collector
.
__format_config_cache_key
(
props_key
),
configuration
,
Collector
.
__format_config_cache_key
(
same_config_props
[
0
]))
self
.
__config_cache
[
props_key
]
=
configuration
...
...
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