| OLD | NEW |
| 1 #!/usr/bin/env python | 1 #!/usr/bin/env python |
| 2 # Copyright (c) 2012 The Chromium Authors. All rights reserved. | 2 # Copyright (c) 2012 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 """ Upload benchmark results to AppEngine.. """ | 6 """ Upload benchmark results to AppEngine.. """ |
| 7 | 7 |
| 8 from build_step import BuildStep | 8 from build_step import BuildStep |
| 9 from utils import shell_utils | 9 from py.utils import shell_utils |
| 10 | 10 |
| 11 import os | 11 import os |
| 12 import skia_vars | 12 import skia_vars |
| 13 import sys | 13 import sys |
| 14 | 14 |
| 15 | 15 |
| 16 class UploadBenchResultsToAppengine(BuildStep): | 16 class UploadBenchResultsToAppengine(BuildStep): |
| 17 def __init__(self, timeout=1800, no_output_timeout=1200, **kwargs): | 17 def __init__(self, timeout=1800, no_output_timeout=1200, **kwargs): |
| 18 super(UploadBenchResultsToAppengine, self).__init__( | 18 super(UploadBenchResultsToAppengine, self).__init__( |
| 19 timeout=timeout, | 19 timeout=timeout, |
| (...skipping 17 matching lines...) Expand all Loading... |
| 37 | 37 |
| 38 shell_utils.run(cmd) | 38 shell_utils.run(cmd) |
| 39 | 39 |
| 40 def _Run(self): | 40 def _Run(self): |
| 41 if self._perf_data_dir: | 41 if self._perf_data_dir: |
| 42 self._RunInternal('25th') | 42 self._RunInternal('25th') |
| 43 | 43 |
| 44 | 44 |
| 45 if '__main__' == __name__: | 45 if '__main__' == __name__: |
| 46 sys.exit(BuildStep.RunBuildStep(UploadBenchResultsToAppengine)) | 46 sys.exit(BuildStep.RunBuildStep(UploadBenchResultsToAppengine)) |
| OLD | NEW |