| OLD | NEW |
| 1 # Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 # Copyright (c) 2013 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 """Base class for all slave-side build steps. """ | 5 """Base class for all slave-side build steps. """ |
| 6 | 6 |
| 7 import config | 7 import config |
| 8 # pylint: disable=W0611 | 8 # pylint: disable=W0611 |
| 9 import flavor_utils | 9 import flavor_utils |
| 10 import imp | 10 import imp |
| (...skipping 192 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 203 self._builder_name, | 203 self._builder_name, |
| 204 None if args['perf_output_basedir'] == 'None' | 204 None if args['perf_output_basedir'] == 'None' |
| 205 else args['perf_output_basedir']) | 205 else args['perf_output_basedir']) |
| 206 self._storage_playback_dirs = StorageSkpPlaybackDirs( | 206 self._storage_playback_dirs = StorageSkpPlaybackDirs( |
| 207 self._builder_name, | 207 self._builder_name, |
| 208 None if args['perf_output_basedir'] == 'None' | 208 None if args['perf_output_basedir'] == 'None' |
| 209 else args['perf_output_basedir']) | 209 else args['perf_output_basedir']) |
| 210 | 210 |
| 211 self._skp_dir = self._local_playback_dirs.PlaybackSkpDir() | 211 self._skp_dir = self._local_playback_dirs.PlaybackSkpDir() |
| 212 | 212 |
| 213 # Figure out where we are going to store performance output. | 213 # Figure out where we are going to store performance related data. |
| 214 if args['perf_output_basedir'] != 'None': | 214 if args['perf_output_basedir'] != 'None': |
| 215 self._perf_data_dir = os.path.join(args['perf_output_basedir'], | 215 self._perf_data_dir = os.path.join(args['perf_output_basedir'], |
| 216 self._builder_name, 'data') | 216 self._builder_name, 'data') |
| 217 self._perf_graphs_dir = os.path.join(args['perf_output_basedir'], | 217 self._perf_graphs_dir = os.path.join(args['perf_output_basedir'], |
| 218 self._builder_name, 'graphs') | 218 self._builder_name, 'graphs') |
| 219 self._perf_range_input_dir = os.path.join( |
| 220 args['perf_output_basedir'], self._builder_name, 'expectations') |
| 219 else: | 221 else: |
| 220 self._perf_data_dir = None | 222 self._perf_data_dir = None |
| 221 self._perf_graphs_dir = None | 223 self._perf_graphs_dir = None |
| 224 self._perf_range_input_dir = None |
| 222 | 225 |
| 223 self._skimage_in_dir = os.path.join(os.pardir, 'skimage_in') | 226 self._skimage_in_dir = os.path.join(os.pardir, 'skimage_in') |
| 224 | 227 |
| 225 self._skimage_expected_dir = os.path.join('expectations', 'skimage') | 228 self._skimage_expected_dir = os.path.join('expectations', 'skimage') |
| 226 | 229 |
| 227 self._skimage_out_dir = os.path.join('out', self._configuration, | 230 self._skimage_out_dir = os.path.join('out', self._configuration, |
| 228 'skimage_out') | 231 'skimage_out') |
| 229 | 232 |
| 230 self._device_dirs = self._flavor_utils.GetDeviceDirs() | 233 self._device_dirs = self._flavor_utils.GetDeviceDirs() |
| 231 | 234 |
| (...skipping 144 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 376 else: | 379 else: |
| 377 raise BuildStepFailure('Build step failed.') | 380 raise BuildStepFailure('Build step failed.') |
| 378 except Exception: | 381 except Exception: |
| 379 print traceback.format_exc() | 382 print traceback.format_exc() |
| 380 if attempt + 1 >= step.attempts: | 383 if attempt + 1 >= step.attempts: |
| 381 raise | 384 raise |
| 382 # pylint: disable=W0212 | 385 # pylint: disable=W0212 |
| 383 step._WaitFunc(attempt) | 386 step._WaitFunc(attempt) |
| 384 attempt += 1 | 387 attempt += 1 |
| 385 print '**** %s, attempt %d ****' % (StepType.__name__, attempt + 1) | 388 print '**** %s, attempt %d ****' % (StepType.__name__, attempt + 1) |
| OLD | NEW |