mirror of
https://github.com/flatcar/scripts.git
synced 2025-09-25 07:31:01 +02:00
Fix handling of array arguments in chromite cros_build_lib.
Change-Id: Ibc8d603708bb239a125d0c642deecdc3a171ca63 BUG=chromium-os:9759 TEST=cros_build_lib.RunCommand(['ls', '-l']) Review URL: http://codereview.chromium.org/5347008
This commit is contained in:
parent
3b9107014b
commit
c15b609efa
@ -78,9 +78,8 @@ def RunCommand(cmd, print_cmd=True, error_ok=False, error_message=None,
|
|||||||
cmd_result.cmd = cmd_str
|
cmd_result.cmd = cmd_str
|
||||||
|
|
||||||
try:
|
try:
|
||||||
proc = subprocess.Popen(cmd_str, cwd=cwd, stdin=stdin,
|
proc = subprocess.Popen(cmd, cwd=cwd, stdin=stdin, stdout=stdout,
|
||||||
stdout=stdout, stderr=stderr,
|
stderr=stderr, shell=shell)
|
||||||
shell=shell)
|
|
||||||
(cmd_result.output, cmd_result.error) = proc.communicate(input)
|
(cmd_result.output, cmd_result.error) = proc.communicate(input)
|
||||||
if exit_code:
|
if exit_code:
|
||||||
cmd_result.returncode = proc.returncode
|
cmd_result.returncode = proc.returncode
|
||||||
|
Loading…
x
Reference in New Issue
Block a user