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

Side by Side Diff: scripts/master/factory/chromium_commands.py

Issue 9138042: Adds a 'webkit_lint' test step to the bots (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/tools/build/
Patch Set: '' Created 8 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 # Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 # Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be 2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file. 3 # found in the LICENSE file.
4 4
5 """Set of utilities to add commands to a buildbot factory. 5 """Set of utilities to add commands to a buildbot factory.
6 6
7 This is based on commands.py and adds chromium-specific commands.""" 7 This is based on commands.py and adds chromium-specific commands."""
8 8
9 import logging 9 import logging
10 import os 10 import os
(...skipping 727 matching lines...) Expand 10 before | Expand all | Expand 10 after
738 '--target', self._target, 738 '--target', self._target,
739 '--build-dir', self._build_dir, 739 '--build-dir', self._build_dir,
740 'inspector' 740 'inspector'
741 ] 741 ]
742 742
743 self.AddTestStep(c, 743 self.AddTestStep(c,
744 test_name='DevTools.PerfTest', 744 test_name='DevTools.PerfTest',
745 test_command=cmd, 745 test_command=cmd,
746 do_step_if=self.TestStepFilter) 746 do_step_if=self.TestStepFilter)
747 747
748 def AddWebkitLint(self, factory_properties=None):
749 """Adds a step to the factory to lint the WebKit test_expectations.txt file. """
nsylvain 2012/01/25 20:19:54 80 chars
Dirk Pranke 2012/01/25 22:39:07 Done.
750 factory_properties = factory_properties or {}
nsylvain 2012/01/25 20:19:54 i dont think you need this line
Dirk Pranke 2012/01/25 22:39:07 Done.
751 cmd = [self._python, self._lint_test_files_tool]
752 self.AddTestStep(shell.ShellCommand,
753 test_name='lint_test_files',
754 test_command=cmd,
755 do_step_if=self.TestStepFilter)
756
748 def AddWebkitTests(self, gpu, factory_properties=None): 757 def AddWebkitTests(self, gpu, factory_properties=None):
749 """Adds a step to the factory to run the WebKit layout tests. 758 """Adds a step to the factory to run the WebKit layout tests.
750 759
751 Args: 760 Args:
752 gpu: if True, run the GPU-acclerated variant of the tests. 761 gpu: if True, run the GPU-acclerated variant of the tests.
753 with_pageheap: if True, page-heap checking will be enabled for test_shell 762 with_pageheap: if True, page-heap checking will be enabled for test_shell
754 test_timeout: buildbot timeout for the test step 763 test_timeout: buildbot timeout for the test step
755 archive_timeout: buildbot timeout for archiving the test results and 764 archive_timeout: buildbot timeout for archiving the test results and
756 crashes, if requested 765 crashes, if requested
757 archive_results: whether to archive the test results 766 archive_results: whether to archive the test results
(...skipping 240 matching lines...) Expand 10 before | Expand all | Expand 10 after
998 # ArchiveCommand.createSummary. 1007 # ArchiveCommand.createSummary.
999 return '%s/%s/%s' % (config.Master.archive_url, archive_type, builder_name) 1008 return '%s/%s/%s' % (config.Master.archive_url, archive_type, builder_name)
1000 1009
1001 def _GetSnapshotUrl(factory_properties=None, builder_name='%(build_name)s'): 1010 def _GetSnapshotUrl(factory_properties=None, builder_name='%(build_name)s'):
1002 if not factory_properties or 'gs_bucket' not in factory_properties: 1011 if not factory_properties or 'gs_bucket' not in factory_properties:
1003 return (_GetArchiveUrl('snapshots', builder_name), None) 1012 return (_GetArchiveUrl('snapshots', builder_name), None)
1004 gs_bucket = factory_properties['gs_bucket'] 1013 gs_bucket = factory_properties['gs_bucket']
1005 gs_bucket = re.sub(r'^gs://', 'http://commondatastorage.googleapis.com/', 1014 gs_bucket = re.sub(r'^gs://', 'http://commondatastorage.googleapis.com/',
1006 gs_bucket) 1015 gs_bucket)
1007 return ('%s/index.html?path=%s' % (gs_bucket, builder_name), '/') 1016 return ('%s/index.html?path=%s' % (gs_bucket, builder_name), '/')
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698