Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
D
debomatic-webui
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
debomatic-webui-admins
debomatic-webui
Commits
a81bfce3
Commit
a81bfce3
authored
Aug 23, 2014
by
Leo Iannacone
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
module: add parser for blhc log
parent
378e5b7f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
0 deletions
+13
-0
debomatic-modules/JSONLogger.py
debomatic-modules/JSONLogger.py
+13
-0
No files found.
debomatic-modules/JSONLogger.py
View file @
a81bfce3
...
@@ -180,6 +180,8 @@ class LogParser():
...
@@ -180,6 +180,8 @@ class LogParser():
result
=
self
.
parse_autopkgtest
()
result
=
self
.
parse_autopkgtest
()
elif
self
.
extension
==
'piuparts'
:
elif
self
.
extension
==
'piuparts'
:
result
=
self
.
parse_piuparts
()
result
=
self
.
parse_piuparts
()
elif
self
.
extension
==
'blhc'
:
result
=
self
.
parse_blhc
()
return
result
return
result
def
parse_lintian
(
self
):
def
parse_lintian
(
self
):
...
@@ -218,6 +220,17 @@ class LogParser():
...
@@ -218,6 +220,17 @@ class LogParser():
return
'E'
return
'E'
return
None
return
None
def
parse_blhc
(
self
):
tags
=
defaultdict
(
int
)
with
open
(
self
.
file
,
'r'
)
as
fd
:
for
line
in
fd
:
info
=
line
.
split
()
if
info
[
1
]
!=
'missing'
:
continue
tag
=
info
[
0
].
replace
(
'FLAGS'
,
''
)
tags
[
tag
]
+=
1
return
sorted
(
list
(
tags
.
keys
()))
def
_from_tags_to_result
(
self
,
tags
):
def
_from_tags_to_result
(
self
,
tags
):
keys
=
sorted
(
list
(
tags
.
keys
()))
keys
=
sorted
(
list
(
tags
.
keys
()))
result
=
[
"%s%s"
%
(
k
,
tags
[
k
])
for
k
in
keys
]
result
=
[
"%s%s"
%
(
k
,
tags
[
k
])
for
k
in
keys
]
...
...
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