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