diff options
author | imasaki@google.com <imasaki@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-03-01 20:19:01 +0000 |
---|---|---|
committer | imasaki@google.com <imasaki@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-03-01 20:19:01 +0000 |
commit | 07b7d6b7c7b5861fdf6e83fff5075cfea9a2e025 (patch) | |
tree | 90b74d6b32750751ffbc969e979c87380805de24 /media | |
parent | 254ec91056e62ff44251e6256c572445dd7a93d1 (diff) | |
download | chromium_src-07b7d6b7c7b5861fdf6e83fff5075cfea9a2e025.zip chromium_src-07b7d6b7c7b5861fdf6e83fff5075cfea9a2e025.tar.gz chromium_src-07b7d6b7c7b5861fdf6e83fff5075cfea9a2e025.tar.bz2 |
Adding Milestone in chromium bug hunter output file and email. Also, fix some minor issues relating to empty status.
BUG=115503
TEST= locally executed the scripts and made sure it is working as intended.
Review URL: https://chromiumcodereview.appspot.com/9452025
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@124468 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'media')
-rw-r--r-- | media/tools/bug_hunter/bug_hunter.py | 24 | ||||
-rw-r--r-- | media/tools/bug_hunter/bug_hunter_test.py | 2 | ||||
-rw-r--r-- | media/tools/bug_hunter/bug_hunter_unittest.py | 2 |
3 files changed, 18 insertions, 10 deletions
diff --git a/media/tools/bug_hunter/bug_hunter.py b/media/tools/bug_hunter/bug_hunter.py index 96a4289..19a2f8f 100644 --- a/media/tools/bug_hunter/bug_hunter.py +++ b/media/tools/bug_hunter/bug_hunter.py @@ -1,5 +1,5 @@ #!/usr/bin/env python -# Copyright (c) 2011 The Chromium Authors. All rights reserved. +# Copyright (c) 2012 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. @@ -86,7 +86,8 @@ _INTERVAL_UNIT_CHOICES = ('hours', 'days', 'weeks') _URL_EXCLUSION_LIST = ('http://www.youtube.com/html5', 'http://www.google.com') _ISSUE_ELEMENT_IN_EMAIL_CHOICES = ('issue_id', 'author', 'status', 'state', - 'content', 'comments', 'labels', 'urls') + 'content', 'comments', 'labels', 'urls', + 'mstone') def ParseArgs(): @@ -246,12 +247,19 @@ class BugHunter(object): set(re.findall(r'(https?://\S+)', content + comments))) url_list = [url for url in url_list if not url.rstrip('/') in _URL_EXCLUSION_LIST] - issues.append({'issue_id': issue_id, 'title': entry.title.text, - 'author': entry.author[0].name.text, - 'status': entry.status.text, - 'state': entry.state.text, 'content': content, - 'comments': comments, 'labels': label_list, - 'urls': url_list}) + mstone = '' + r = re.compile(r'Mstone-(\d*)') + for label in label_list: + m = r.search(label) + if m: + mstone = m.group(1) + issues.append( + {'issue_id': issue_id, 'title': entry.title.text, + 'author': entry.author[0].name.text, + 'status': entry.status.text if entry.status is not None else '', + 'state': entry.state.text if entry.state is not None else '', + 'content': content, 'mstone': mstone, 'comments': comments, + 'labels': label_list, 'urls': url_list}) return sorted(issues, key=itemgetter('issue_id'), reverse=True) def _SetUpEmailSubjectMsg(self, issues): diff --git a/media/tools/bug_hunter/bug_hunter_test.py b/media/tools/bug_hunter/bug_hunter_test.py index 1b969e5..d5df557 100644 --- a/media/tools/bug_hunter/bug_hunter_test.py +++ b/media/tools/bug_hunter/bug_hunter_test.py @@ -1,5 +1,5 @@ #!/usr/bin/env python -# Copyright (c) 2011 The Chromium Authors. All rights reserved. +# Copyright (c) 2012 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. diff --git a/media/tools/bug_hunter/bug_hunter_unittest.py b/media/tools/bug_hunter/bug_hunter_unittest.py index 5dc8fd4..d3eea84 100644 --- a/media/tools/bug_hunter/bug_hunter_unittest.py +++ b/media/tools/bug_hunter/bug_hunter_unittest.py @@ -1,5 +1,5 @@ #!/usr/bin/env python -# Copyright (c) 2011 The Chromium Authors. All rights reserved. +# Copyright (c) 2012 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. |