Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(613)

Issue 3323019: Add shell parameter to allow running commands directly. (Closed)

Created:
10 years, 3 months ago by davidjames
Modified:
9 years, 4 months ago
Reviewers:
Tan Gao, sosa
CC:
chromium-os-reviews_chromium.org, Mandeep Singh Baines, anush, sosa
Visibility:
Public.

Description

Add shell parameter to allow running commands directly. For chromite, we often want to run shell commands directly instead of using the array syntax currently accepted by RunCommand. This makes it easier to run piped commands, for example. BUG=chromium-os:6573 TEST=I'm using it in cros_build. Change-Id: Ic846e257fec4e423b0253d06641eac232545f6f6

Patch Set 1 #

Total comments: 10

Patch Set 2 : Address review comments. #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+14 lines, -8 lines) Patch
M chromite/lib/cros_build_lib.py View 1 3 chunks +14 lines, -8 lines 1 comment Download

Messages

Total messages: 6 (0 generated)
davidjames
Both of us are working on code that needs this feature, so I'm sending this ...
10 years, 3 months ago (2010-09-09 17:02:39 UTC) #1
Tan Gao
http://codereview.chromium.org/3323019/diff/1/2 File chromite/lib/cros_build_lib.py (right): http://codereview.chromium.org/3323019/diff/1/2#newcode18 chromite/lib/cros_build_lib.py:18: cmd - cmd to run. Should be input to ...
10 years, 3 months ago (2010-09-09 17:19:26 UTC) #2
sosa
http://codereview.chromium.org/3323019/diff/1/2 File chromite/lib/cros_build_lib.py (right): http://codereview.chromium.org/3323019/diff/1/2#newcode43 chromite/lib/cros_build_lib.py:43: if shell: Since you are using shell to determine ...
10 years, 3 months ago (2010-09-09 17:20:16 UTC) #3
davidjames
http://codereview.chromium.org/3323019/diff/1/2 File chromite/lib/cros_build_lib.py (right): http://codereview.chromium.org/3323019/diff/1/2#newcode18 chromite/lib/cros_build_lib.py:18: cmd - cmd to run. Should be input to ...
10 years, 3 months ago (2010-09-09 17:30:28 UTC) #4
Tan Gao
LGTM!
10 years, 3 months ago (2010-09-09 17:37:18 UTC) #5
sosa
10 years, 3 months ago (2010-09-09 17:45:21 UTC) #6
nit o/w/ lgtm

http://codereview.chromium.org/3323019/diff/6001/7001
File chromite/lib/cros_build_lib.py (right):

http://codereview.chromium.org/3323019/diff/6001/7001#newcode29
chromite/lib/cros_build_lib.py:29: shell -- If shell is True, the specified
command will be executed through the shell.
80 chars :p

Powered by Google App Engine
This is Rietveld 408576698