Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
T
tracker-miners
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
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
Sumaid Syed
tracker-miners
Commits
811e2b0e
Commit
811e2b0e
authored
May 26, 2019
by
Sam Thursfield
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'sam/extractor-test-error'
See merge request
GNOME/tracker-miners!72
parents
9aaef224
2a88ad75
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
1 deletion
+7
-1
tests/functional-tests/common/utils/extractor.py
tests/functional-tests/common/utils/extractor.py
+7
-1
No files found.
tests/functional-tests/common/utils/extractor.py
View file @
811e2b0e
...
...
@@ -66,10 +66,16 @@ def get_tracker_extract_jsonld_output(filename, mime_type=None):
"Error output:
\n
%s
\n
"
%
(
p
.
returncode
,
stderr
.
decode
(
'unicode-escape'
).
strip
()))
if
len
(
stderr
)
>
0
:
log
(
"Error output from tracker-extract:
\n
%s"
%
stderr
.
decode
(
'unicode-escape'
).
strip
())
error_output
=
stderr
.
decode
(
'unicode-escape'
).
strip
()
log
(
"Error output from tracker-extract:
\n
%s"
%
error_output
)
try
:
output
=
stdout
.
decode
(
'utf-8'
)
if
len
(
output
.
strip
())
==
0
:
raise
RuntimeError
(
"tracker-extract didn't return any data.
\n
"
"Error output was: %s"
%
error_output
)
data
=
json
.
loads
(
output
)
except
ValueError
as
e
:
raise
RuntimeError
(
"tracker-extract did not return valid JSON data: %s
\n
"
...
...
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