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

Issue 6792060: Make more tests pass on Windows. (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

Make more tests pass on Windows. Also fix a few issues found along the way. Tests had regressed a lot. Add a lot of tweaks to make most test pass. R=dpranke@chromium.org BUG= TEST= Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=80618

Patch Set 1 #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+69 lines, -33 lines) Patch
M PRESUBMIT.py View 1 chunk +4 lines, -0 lines 0 comments Download
M git_cl.py View 1 chunk +1 line, -1 line 0 comments Download
M scm.py View 1 chunk +6 lines, -4 lines 1 comment Download
M subprocess2.py View 2 chunks +3 lines, -1 line 0 comments Download
M tests/fake_repos.py View 2 chunks +5 lines, -4 lines 0 comments Download
M tests/fix_encoding_test.py View 1 chunk +5 lines, -4 lines 0 comments Download
M tests/gclient_smoketest.py View 1 chunk +8 lines, -1 line 0 comments Download
M tests/local_rietveld.py View 2 chunks +5 lines, -4 lines 0 comments Download
M tests/presubmit_unittest.py View 3 chunks +8 lines, -3 lines 1 comment Download
M tests/scm_unittest.py View 1 chunk +11 lines, -6 lines 0 comments Download
M tests/subprocess2_test.py View 3 chunks +13 lines, -5 lines 0 comments Download

Messages

Total messages: 3 (0 generated)
M-A Ruel
9 years, 8 months ago (2011-04-05 20:28:50 UTC) #1
Dirk Pranke
LGTM. http://codereview.chromium.org/6792060/diff/1/scm.py File scm.py (right): http://codereview.chromium.org/6792060/diff/1/scm.py#newcode81 scm.py:81: subprocess2.check_output( I wonder if it makes sense to ...
9 years, 8 months ago (2011-04-05 21:01:29 UTC) #2
M-A Ruel
9 years, 8 months ago (2011-04-06 01:29:23 UTC) #3
Le 5 avril 2011 17:01, <dpranke@chromium.org> a écrit :

> LGTM.
>
>
> http://codereview.chromium.org/6792060/diff/1/scm.py
> File scm.py (right):
>
> http://codereview.chromium.org/6792060/diff/1/scm.py#newcode81
> scm.py:81: subprocess2.check_output(
> I wonder if it makes sense to have another method in subprocess2 that
> executes a command and raises on error, but doesn't return any output at
> all. Here check_output() is returning stdout and you're ignoring it; I
> had to go look at subprocess2 to remember what the difference between
> this and check_call() was.
>

I tried to stay as close as possible of
http://docs.python.org/library/subprocess.html#subprocess.check_output but
check_call() returning just returncode is extremely useless.
 <http://docs.python.org/library/subprocess.html#subprocess.check_output>


> http://codereview.chromium.org/6792060/diff/1/tests/presubmit_unittest.py
> File tests/presubmit_unittest.py (right):
>
>
>
http://codereview.chromium.org/6792060/diff/1/tests/presubmit_unittest.py#new...
> tests/presubmit_unittest.py:2011: cmd.insert(0,
> input_api.python_executable)
> why not always use cmd = [ input_api.python_executable ] ?


Makes sense. Will do in a follow up change.

M-A

Powered by Google App Engine
This is Rietveld 408576698