summaryrefslogtreecommitdiffstats
path: root/media/tools/layout_tests/layouttest_analyzer.py
diff options
context:
space:
mode:
authorimasaki@google.com <imasaki@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2011-09-09 13:47:24 +0000
committerimasaki@google.com <imasaki@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2011-09-09 13:47:24 +0000
commit796a2ea496c28dd1ed60d480b1e43802705ef902 (patch)
treea436e7d8810bc2e5218660a09084d03a29253537 /media/tools/layout_tests/layouttest_analyzer.py
parenta567a9ff867e1a12f01e2a7e45158767597378b2 (diff)
downloadchromium_src-796a2ea496c28dd1ed60d480b1e43802705ef902.zip
chromium_src-796a2ea496c28dd1ed60d480b1e43802705ef902.tar.gz
chromium_src-796a2ea496c28dd1ed60d480b1e43802705ef902.tar.bz2
Add a command-line option about status email in the layout test analyzer.
When this option is on, the analyzer sends out email only when there is the change in the result comparing to the last result. Review URL: http://codereview.chromium.org/7850023 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@100400 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'media/tools/layout_tests/layouttest_analyzer.py')
-rw-r--r--media/tools/layout_tests/layouttest_analyzer.py10
1 files changed, 9 insertions, 1 deletions
diff --git a/media/tools/layout_tests/layouttest_analyzer.py b/media/tools/layout_tests/layouttest_analyzer.py
index 3033a1d..717d452 100644
--- a/media/tools/layout_tests/layouttest_analyzer.py
+++ b/media/tools/layout_tests/layouttest_analyzer.py
@@ -84,6 +84,13 @@ def parse_option():
'(default to %default and no text is '
'appended in that case.)'),
default=None)
+ option_parser.add_option('-c', '--email-only-change-mode',
+ dest='email_only_change_mode',
+ help=('With this mode, email is sent out '
+ 'only when there is a change in the '
+ 'analyzer result compared to the previous '
+ 'result (off by default)'),
+ action='store_true', default=False)
return option_parser.parse_args()[0]
@@ -139,7 +146,8 @@ def main():
anno_map,
options.receiver_email_address,
options.test_group_name,
- appended_text_to_email)
+ appended_text_to_email,
+ options.email_only_change_mode)
if not options.debug:
# Save the current result.
date = start_time.strftime('%Y-%m-%d-%H')