Index: build/android/cmd_helper.py |
diff --git a/build/android/cmd_helper.py b/build/android/cmd_helper.py |
index 901cbe9aed76e110da5f2c06bc652fcda522fb00..ccf457ebaf2fc39869aa96fcd4ef8d92cf692f51 100644 |
--- a/build/android/cmd_helper.py |
+++ b/build/android/cmd_helper.py |
@@ -21,7 +21,7 @@ def RunCmd(args, cwd=None): |
return p.wait() |
-def GetCmdOutput(args, cwd=None): |
+def GetCmdOutput(args, cwd=None, shell=False): |
"""Open a subprocess to execute a program and returns its output. |
Args: |
@@ -32,7 +32,7 @@ def GetCmdOutput(args, cwd=None): |
""" |
logging.info(str(args) + ' ' + (cwd or '')) |
p = subprocess.Popen(args=args, cwd=cwd, stdout=subprocess.PIPE, |
- stderr=subprocess.PIPE) |
+ stderr=subprocess.PIPE, shell=shell) |
stdout, stderr = p.communicate() |
if stderr: |
logging.critical(stderr) |