Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
infra
packages
Commits
56f2565d
Commit
56f2565d
authored
Jan 07, 2019
by
Robin Sonnabend
Browse files
print subprocess outputs
parent
87302a16
Pipeline
#586
passed with stage
in 13 minutes and 22 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
scripts/build.py
View file @
56f2565d
...
...
@@ -26,10 +26,13 @@ EXTRACT_PATTERN = (r"extracting (?P<name>{pkg_name}) in (?P<dir>{pkg_name}-{vers
def
run_checked
(
command
,
**
kwargs
):
try
:
re
turn
sp
.
run
(
re
sult
=
sp
.
run
(
command
,
check
=
True
,
stdout
=
sp
.
PIPE
,
stderr
=
sp
.
PIPE
,
universal_newlines
=
True
,
**
kwargs
)
print
(
result
.
stdout
)
print
(
result
.
stderr
)
return
result
except
sp
.
CalledProcessError
as
error
:
print
(
error
.
stdout
)
print
(
error
.
stderr
)
...
...
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