Descriptiondownload_gold_plugin.py: Redirect stderr to /dev/null when calling gsutil.
When called from a bot, runhooks' stdin will be redirected to /dev/null. The
hack we use in update.py that redirects stdin to stderr causes a read-only
/dev/null to eventually appear as gsutil's stderr here, which causes it
to blow up for an unknown reason. To avoid this problem, open a writable
/dev/null and redirect unconditionally here.
This prevents command line users from seeing gsutil's output, but at least
the thing runs.
BUG=453195
R=thakis@chromium.org
Committed: https://crrev.com/83a9be53371d0bc5a1084e2162cb28b2d073433e
Cr-Commit-Position: refs/heads/master@{#339542}
Patch Set 1 #Patch Set 2 : Update comment #Messages
Total messages: 7 (2 generated)
|