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

Issue 6793044: Fix automatic shell detection, the check was reversed (Closed)

Created:
9 years, 8 months ago by M-A Ruel
Modified:
9 years, 7 months ago
Reviewers:
Dirk Pranke
CC:
chromium-reviews, Dirk Pranke, M-A Ruel
Visibility:
Public.

Description

Fix automatic shell detection, the check was reversed Improved tests and added regression test. R=dpranke@chromium.org BUG= TEST= Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=80614

Patch Set 1 #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+70 lines, -11 lines) Patch
M subprocess2.py View 1 chunk +2 lines, -3 lines 1 comment Download
M tests/subprocess2_test.py View 2 chunks +68 lines, -8 lines 1 comment Download

Messages

Total messages: 3 (0 generated)
M-A Ruel
9 years, 8 months ago (2011-04-05 17:38:05 UTC) #1
Dirk Pranke
LGTM. A couple of questions noted below, though. http://codereview.chromium.org/6793044/diff/1/subprocess2.py File subprocess2.py (right): http://codereview.chromium.org/6793044/diff/1/subprocess2.py#newcode150 subprocess2.py:150: kwargs['shell'] ...
9 years, 8 months ago (2011-04-05 21:18:49 UTC) #2
M-A Ruel
9 years, 8 months ago (2011-04-06 01:27:25 UTC) #3
Le 5 avril 2011 17:18, <dpranke@chromium.org> a écrit :

> LGTM.
>
> A couple of questions noted below, though.
>
>
> http://codereview.chromium.org/6793044/diff/1/subprocess2.py
> File subprocess2.py (right):
>
> http://codereview.chromium.org/6793044/diff/1/subprocess2.py#newcode150
> subprocess2.py:150: kwargs['shell'] = bool(sys.platform=='win32')
> don't think you need the case here.
>

Cast? I just wanted to have this extra clear but I agree it's extraneous. I
had added it because I thought I had a bug at a moment.



> http://codereview.chromium.org/6793044/diff/1/tests/subprocess2_test.py
> File tests/subprocess2_test.py (right):
>
>
>
http://codereview.chromium.org/6793044/diff/1/tests/subprocess2_test.py#newco...
> tests/subprocess2_test.py:25: subprocess2: ['Popen', 'call',
>
> 'check_call', 'capture', 'check_output'],
> Don't need to change this in this patch, but, do you need to stub out
> things beyond Popen()? Doesn't everything else end up calling that?


Oh no, just planing to test more.

M-A

Powered by Google App Engine
This is Rietveld 408576698