Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Hans-Peter Deifel
copar-benchmarks
Commits
e476eb90
Commit
e476eb90
authored
Apr 09, 2019
by
Hans-Peter Deifel
Browse files
wta: Print stderr in case the subprocess fails
parent
d9e8db61
Changes
1
Hide whitespace changes
Inline
Side-by-side
wta/bench.py
View file @
e476eb90
...
...
@@ -81,11 +81,15 @@ def run_one(args, i):
copar_args
=
[
copar
,
'refine'
,
'--stats-json'
,
f
]
out
=
subprocess
.
run
(
copar_args
,
stdout
=
subprocess
.
DEVNULL
,
stderr
=
subprocess
.
PIPE
,
check
=
True
)
try
:
out
=
subprocess
.
run
(
copar_args
,
stdout
=
subprocess
.
DEVNULL
,
stderr
=
subprocess
.
PIPE
,
check
=
True
)
except
subprocess
.
CalledProcessError
as
e
:
print
(
"error: %s"
%
e
.
stderr
.
decode
(
'utf-8'
))
raise
stats
=
json
.
loads
(
out
.
stderr
.
decode
(
'utf-8'
))
...
...
Write
Preview
Supports
Markdown
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