From c15b609efacb7b8240d8cc00133c6194bb70cdfa Mon Sep 17 00:00:00 2001 From: David James Date: Thu, 2 Dec 2010 10:21:49 -0800 Subject: [PATCH] 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 --- chromite/lib/cros_build_lib.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/chromite/lib/cros_build_lib.py b/chromite/lib/cros_build_lib.py index 1d2860ba93..87fa133b75 100644 --- a/chromite/lib/cros_build_lib.py +++ b/chromite/lib/cros_build_lib.py @@ -78,9 +78,8 @@ def RunCommand(cmd, print_cmd=True, error_ok=False, error_message=None, cmd_result.cmd = cmd_str try: - proc = subprocess.Popen(cmd_str, cwd=cwd, stdin=stdin, - stdout=stdout, stderr=stderr, - shell=shell) + proc = subprocess.Popen(cmd, cwd=cwd, stdin=stdin, stdout=stdout, + stderr=stderr, shell=shell) (cmd_result.output, cmd_result.error) = proc.communicate(input) if exit_code: cmd_result.returncode = proc.returncode