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

Issue 8728012: Add a presubmit check so that no new unit tests in content/ are added to the unit_tests target (Closed)

Created:
9 years ago by jochen (gone - plz use gerrit)
Modified:
9 years ago
Reviewers:
jam, Jói
CC:
chromium-reviews
Visibility:
Public.

Description

Add a presubmit check so that no new unit tests in content/ are added to the unit_tests target They should all go to content_unittests now BUG=90443 TEST=manual Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=111925

Patch Set 1 #

Total comments: 4

Patch Set 2 : updates #

Unified diffs Side-by-side diffs Delta from patch set Stats (+46 lines, -5 lines) Patch
M chrome/PRESUBMIT.py View 1 2 chunks +46 lines, -5 lines 0 comments Download

Messages

Total messages: 4 (0 generated)
jochen (gone - plz use gerrit)
plz review
9 years ago (2011-11-28 22:41:35 UTC) #1
jam
this looks great to me, but I haven't written python in such a long time. ...
9 years ago (2011-11-28 23:18:54 UTC) #2
Jói
LGTM with the following issues addressed. http://codereview.chromium.org/8728012/diff/1/chrome/PRESUBMIT.py File chrome/PRESUBMIT.py (right): http://codereview.chromium.org/8728012/diff/1/chrome/PRESUBMIT.py#newcode5 chrome/PRESUBMIT.py:5: import re Please ...
9 years ago (2011-11-29 09:10:29 UTC) #3
jochen (gone - plz use gerrit)
9 years ago (2011-11-29 13:01:11 UTC) #4
http://codereview.chromium.org/8728012/diff/1/chrome/PRESUBMIT.py
File chrome/PRESUBMIT.py (right):

http://codereview.chromium.org/8728012/diff/1/chrome/PRESUBMIT.py#newcode5
chrome/PRESUBMIT.py:5: import re
On 2011/11/29 09:10:30, Jói wrote:
> Please improve the docstring rather than removing it (it was at line 5 in the
> original version of the file).

Done.

http://codereview.chromium.org/8728012/diff/1/chrome/PRESUBMIT.py#newcode68
chrome/PRESUBMIT.py:68: '\n'.join(problems))]
On 2011/11/29 09:10:30, Jói wrote:
> There is another constructor for a message followed by a list of items, that
> will format this more nicely.
> 
> You can then skip prepending spaces in line 61, and call the constructor like
> this (IIRC; check depot_tools/presubmit_support.py if I'm wrong):
> 
>   return [output_api.PresubmitPromptWarning(
>        'Unit tests located in content/ should be added to the ' +
>        'content_tests.gypi:content_unittests target.',
>        problems)]

Done.

Powered by Google App Engine
This is Rietveld 408576698