blob: edce7eb68e44ac64e20e12fed5a7a2f0fa835513 [file]
#!/usr/bin/env python
# Copyright (c) 2012 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
""" Prepare runtime resources that are needed by Bench builders but not
Test builders. """
from build_step import BuildStep
import sys
class PreBench(BuildStep):
def _Run(self):
if self._perf_data_dir:
# Create the data dir if it doesn't exist.
self._flavor_utils.CreateCleanDeviceDirectory(self._device_dirs.PerfDir())
self._flavor_utils.CreateCleanHostDirectory(self._perf_data_dir)
if '__main__' == __name__:
sys.exit(BuildStep.RunBuildStep(PreBench))