| OLD | NEW |
| 1 #!/usr/bin/env python | 1 #!/usr/bin/env python |
| 2 # Copyright (c) 2012 The Chromium Authors. All rights reserved. | 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 | 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 imp | 5 import imp |
| 6 import os | 6 import os |
| 7 import sys | 7 import sys |
| 8 import urllib | 8 import urllib |
| 9 | 9 |
| 10 # Directory path in which to save bootstrap files. | 10 # Directory path in which to save bootstrap files. |
| (...skipping 22 matching lines...) Expand all Loading... |
| 33 BOOTSTRAPPED_FILES_DIR), | 33 BOOTSTRAPPED_FILES_DIR), |
| 34 module_deps_url) | 34 module_deps_url) |
| 35 | 35 |
| 36 | 36 |
| 37 if __name__ == '__main__': | 37 if __name__ == '__main__': |
| 38 bootstrapIfNeeded('gpu_tests', 'src/content/test/gpu', | 38 bootstrapIfNeeded('gpu_tests', 'src/content/test/gpu', |
| 39 'http://src.chromium.org/viewvc/chrome/trunk/src/content/' + | 39 'http://src.chromium.org/viewvc/chrome/trunk/src/content/' + |
| 40 'test/gpu/gpu_tests/bootstrap_deps') | 40 'test/gpu/gpu_tests/bootstrap_deps') |
| 41 import gpu_tests | 41 import gpu_tests |
| 42 from telemetry.page import page_test_runner | 42 from telemetry.page import page_test_runner |
| 43 test_dir = os.path.join(os.path.dirname(__file__), 'gpu_tests') | |
| 44 | 43 |
| 45 import page_sets # pylint: disable=F0401 | 44 import page_sets # pylint: disable=F0401 |
| 46 page_set_filenames = page_sets.GetAllPageSetFilenames() | 45 page_set_filenames = page_sets.GetAllPageSetFilenames() |
| 47 | 46 |
| 48 sys.exit(page_test_runner.Main(test_dir, '', page_set_filenames)) | 47 sys.exit(page_test_runner.Main(os.path.dirname(__file__), page_set_filenames)) |
| OLD | NEW |