OLD | NEW |
| (Empty) |
1 #!/usr/bin/env python | |
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 | |
4 # found in the LICENSE file. | |
5 | |
6 """ Prepare runtime resources that are needed by Bench builders but not | |
7 Test builders. """ | |
8 | |
9 from build_step import BuildStep | |
10 import sys | |
11 | |
12 | |
13 class PreBench(BuildStep): | |
14 def _Run(self): | |
15 if self._perf_data_dir: | |
16 # Create the data dir if it doesn't exist. | |
17 self._flavor_utils.CreateCleanDeviceDirectory(self._device_dirs.PerfDir()) | |
18 self._flavor_utils.CreateCleanHostDirectory(self._perf_data_dir) | |
19 | |
20 | |
21 if '__main__' == __name__: | |
22 sys.exit(BuildStep.RunBuildStep(PreBench)) | |
OLD | NEW |