OLD | NEW |
1 #!/usr/bin/python | 1 #!/usr/bin/python |
2 # Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 2 # Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. |
3 # Use of this source code is governed by a BSD-style license that can be | 3 # Use of this source code is governed by a BSD-style license that can be |
4 # found in the LICENSE file. | 4 # found in the LICENSE file. |
5 | 5 |
6 """Set of utilities to add commands to a buildbot factory.""" | 6 """Set of utilities to add commands to a buildbot factory.""" |
7 | 7 |
8 import os | 8 import os |
9 | 9 |
10 from buildbot.steps import shell | 10 from buildbot.steps import shell |
(...skipping 592 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
603 def GetDomCheckerTestCommand(self): | 603 def GetDomCheckerTestCommand(self): |
604 """Returns a command list to call the _test_tool for the DOM checker tests. | 604 """Returns a command list to call the _test_tool for the DOM checker tests. |
605 | 605 |
606 The command list will have the appropriate GTest filter and arguments. | 606 The command list will have the appropriate GTest filter and arguments. |
607 """ | 607 """ |
608 cmd = [self._python, self._test_tool, | 608 cmd = [self._python, self._test_tool, |
609 '--target', self._target, | 609 '--target', self._target, |
610 '--build-dir', self._build_dir] | 610 '--build-dir', self._build_dir] |
611 | 611 |
612 cmd.extend(['--with-httpd', | 612 cmd.extend(['--with-httpd', |
613 self.PathJoin('src', 'chrome', 'test', 'data', 'dom_checker')]) | 613 self.PathJoin('src', 'chrome', 'test', 'data')]) |
614 | 614 |
615 cmd.extend([self.GetExecutableName('ui_tests'), | 615 cmd.extend([self.GetExecutableName('ui_tests'), |
616 '--gtest_filter=DomCheckerTest.*', | 616 '--gtest_filter=DomCheckerTest.*', |
617 '--gtest_print_time', | 617 '--gtest_print_time', |
618 '--run-dom-checker-test']) | 618 '--run-dom-checker-test']) |
619 | 619 |
620 return cmd | 620 return cmd |
621 | 621 |
622 def AddPageCyclerTests(self, show_results, perf_id=None, timeout=600, | 622 def AddPageCyclerTests(self, show_results, perf_id=None, timeout=600, |
623 http=False): | 623 http=False): |
(...skipping 498 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1122 | 1122 |
1123 def AddStageBuildStep(self): | 1123 def AddStageBuildStep(self): |
1124 """Adds a step to stage the build""" | 1124 """Adds a step to stage the build""" |
1125 self._factory.addStep(shell.ShellCommand, | 1125 self._factory.addStep(shell.ShellCommand, |
1126 description='stage_build', | 1126 description='stage_build', |
1127 timeout=1800, | 1127 timeout=1800, |
1128 command=[self._python, self._archive_tool, | 1128 command=[self._python, self._archive_tool, |
1129 '--target', self._target, | 1129 '--target', self._target, |
1130 '--mode', 'official', | 1130 '--mode', 'official', |
1131 '--build-dir', self._build_dir]) | 1131 '--build-dir', self._build_dir]) |
OLD | NEW |