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

Side by Side Diff: slave/skia_slave_scripts/chrome_drt_canary_run_webkit_tests.py

Issue 344183004: Use new common utils where possible. (Closed) Base URL: https://skia.googlesource.com/buildbot.git@master
Patch Set: rebase Created 6 years, 5 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
OLDNEW
1 #!/usr/bin/env python 1 #!/usr/bin/env python
2 # Copyright (c) 2013 The Chromium Authors. All rights reserved. 2 # Copyright (c) 2013 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 """ Run the WebKit tests. """ 6 """ Run the WebKit tests. """
7 7
8 from build_step import BuildStep, BuildStepWarning 8 from build_step import BuildStep, BuildStepWarning
9 from utils import shell_utils 9 from py.utils import shell_utils
10 import os 10 import os
11 import sys 11 import sys
12 12
13 13
14 class ChromeDRTCanaryRunWebkitTests(BuildStep): 14 class ChromeDRTCanaryRunWebkitTests(BuildStep):
15 def __init__(self, timeout=16800, no_output_timeout=16800, **kwargs): 15 def __init__(self, timeout=16800, no_output_timeout=16800, **kwargs):
16 super(ChromeDRTCanaryRunWebkitTests, self).__init__( 16 super(ChromeDRTCanaryRunWebkitTests, self).__init__(
17 timeout=timeout, no_output_timeout=no_output_timeout, **kwargs) 17 timeout=timeout, no_output_timeout=no_output_timeout, **kwargs)
18 18
19 def _Run(self): 19 def _Run(self):
(...skipping 14 matching lines...) Expand all
34 try: 34 try:
35 shell_utils.run(cmd) 35 shell_utils.run(cmd)
36 except Exception as e: 36 except Exception as e:
37 # Allow this step to fail with a warning, since we expect to see a lot of 37 # Allow this step to fail with a warning, since we expect to see a lot of
38 # failures which aren't our fault. Instead, we care about the diffs. 38 # failures which aren't our fault. Instead, we care about the diffs.
39 raise BuildStepWarning(e) 39 raise BuildStepWarning(e)
40 40
41 41
42 if '__main__' == __name__: 42 if '__main__' == __name__:
43 sys.exit(BuildStep.RunBuildStep(ChromeDRTCanaryRunWebkitTests)) 43 sys.exit(BuildStep.RunBuildStep(ChromeDRTCanaryRunWebkitTests))
OLDNEW
« no previous file with comments | « slave/skia_slave_scripts/check_for_regressions.py ('k') | slave/skia_slave_scripts/chrome_drt_canary_upload_results.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698