summaryrefslogtreecommitdiffstats
path: root/ceee
diff options
context:
space:
mode:
authorjoi@chromium.org <joi@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-11-23 20:29:47 +0000
committerjoi@chromium.org <joi@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-11-23 20:29:47 +0000
commit26df97acbcbb594d0c6f78284f48b430086d8660 (patch)
treea74d3c3873fa1eb04f4b9a329e361a897939e93e /ceee
parentee493dd767b64b3e6510eae81fc0f78135d2518f (diff)
downloadchromium_src-26df97acbcbb594d0c6f78284f48b430086d8660.zip
chromium_src-26df97acbcbb594d0c6f78284f48b430086d8660.tar.gz
chromium_src-26df97acbcbb594d0c6f78284f48b430086d8660.tar.bz2
Fix presubmit script so smoke_test check works after move. Also let it
work with cygwin clients. BUG=64202 TEST=none Review URL: http://codereview.chromium.org/5278005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@67147 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ceee')
-rw-r--r--ceee/ceee_presubmit.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/ceee/ceee_presubmit.py b/ceee/ceee_presubmit.py
index 5b9c6d8..184c11b 100644
--- a/ceee/ceee_presubmit.py
+++ b/ceee/ceee_presubmit.py
@@ -124,14 +124,16 @@ You must build and run the CEEE smoke tests before submitting. To clear this
error, run the script "smoke_test.bat" in the CEEE directory.
'''
+
def CheckUnittestsRan(input_api, output_api, committing):
'''Checks that the unittests success file is newer than any modified file'''
# But only if there were IE files modified, since we only have unit tests
# for CEEE IE.
files = []
+ ie_paths_re = re.compile('ceee[\\/](ie|common)[\\/]')
for f in input_api.AffectedFiles(include_deletes = False):
path = f.LocalPath()
- if path.startswith('ie\\') or path.startswith('common\\'):
+ if (ie_paths_re.match(path)):
files.append(f)
if not files: