| OLD | NEW |
| 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 Loading... |
| 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)) |
| OLD | NEW |