summaryrefslogtreecommitdiffstats
path: root/build/android/gyp/util/build_utils.py
diff options
context:
space:
mode:
authorjbudorick <jbudorick@chromium.org>2016-03-21 09:43:40 -0700
committerCommit bot <commit-bot@chromium.org>2016-03-21 16:44:33 +0000
commitc2b563ca5489aaf7579a4b9f389533b7af336187 (patch)
tree8e523e85431f7fdf1378526c512d224dda773006 /build/android/gyp/util/build_utils.py
parent6e47685c9153b1d26ce5d2f955ebd6aea67e09d3 (diff)
downloadchromium_src-c2b563ca5489aaf7579a4b9f389533b7af336187.zip
chromium_src-c2b563ca5489aaf7579a4b9f389533b7af336187.tar.gz
chromium_src-c2b563ca5489aaf7579a4b9f389533b7af336187.tar.bz2
[Android] Run lint using a cache in the output directory.
BUG=583661 Review URL: https://codereview.chromium.org/1815563005 Cr-Commit-Position: refs/heads/master@{#382306}
Diffstat (limited to 'build/android/gyp/util/build_utils.py')
-rw-r--r--build/android/gyp/util/build_utils.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/build/android/gyp/util/build_utils.py b/build/android/gyp/util/build_utils.py
index 3fa91aa..5e088b7 100644
--- a/build/android/gyp/util/build_utils.py
+++ b/build/android/gyp/util/build_utils.py
@@ -152,7 +152,7 @@ class CalledProcessError(Exception):
# This can be used in most cases like subprocess.check_output(). The output,
# particularly when the command fails, better highlights the command's failure.
# If the command fails, raises a build_utils.CalledProcessError.
-def CheckOutput(args, cwd=None,
+def CheckOutput(args, cwd=None, env=None,
print_stdout=False, print_stderr=True,
stdout_filter=None,
stderr_filter=None,
@@ -161,7 +161,7 @@ def CheckOutput(args, cwd=None,
cwd = os.getcwd()
child = subprocess.Popen(args,
- stdout=subprocess.PIPE, stderr=subprocess.PIPE, cwd=cwd)
+ stdout=subprocess.PIPE, stderr=subprocess.PIPE, cwd=cwd, env=env)
stdout, stderr = child.communicate()
if stdout_filter is not None: