| OLD | NEW |
| 1 #!/usr/bin/env python | 1 #!/usr/bin/env python |
| 2 # Copyright (c) 2015 The Chromium Authors. All rights reserved. | 2 # Copyright (c) 2015 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 import os | 5 import os |
| 6 import sys | 6 import sys |
| 7 | 7 |
| 8 sys.path.append(os.path.join(os.path.dirname(__file__), '..')) | 8 sys.path.append(os.path.join(os.path.dirname(__file__), '..')) |
| 9 from telemetry import benchmark_runner | 9 from telemetry import benchmark_runner |
| 10 from telemetry import project_config | |
| 11 | 10 |
| 12 def main(): | 11 def main(): |
| 13 top_level_dir = os.path.dirname(__file__) | 12 top_level_dir = os.path.dirname(__file__) |
| 14 config = project_config.ProjectConfig( | 13 config = benchmark_runner.ProjectConfig( |
| 15 top_level_dir=top_level_dir, | 14 top_level_dir=top_level_dir, |
| 16 benchmark_dirs=[os.path.join(top_level_dir, 'benchmarks')]) | 15 benchmark_dirs=[os.path.join(top_level_dir, 'benchmarks')]) |
| 17 return benchmark_runner.main(config) | 16 return benchmark_runner.main(config) |
| 18 | 17 |
| 19 if __name__ == '__main__': | 18 if __name__ == '__main__': |
| 20 sys.exit(main()) | 19 sys.exit(main()) |
| OLD | NEW |