OLD | NEW |
1 #!/usr/bin/env python | 1 #!/usr/bin/env python |
2 # Copyright 2015 The Chromium Authors. All rights reserved. | 2 # Copyright 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 | 5 |
6 """This script runs unit tests of the code in the gpu_tests/ directory. | 6 """This script runs unit tests of the code in the gpu_tests/ directory. |
7 | 7 |
8 This script DOES NOT run tests. run_gpu_test does that. | 8 This script DOES NOT run tests. run_gpu_test does that. |
9 """ | 9 """ |
10 | 10 |
11 import sys | 11 import sys |
12 | 12 |
13 from gpu_tests import path_util | 13 from gpu_tests import path_util |
14 import gpu_project_config | 14 import gpu_project_config |
15 | 15 |
16 path_util.AddDirToPathIfNeeded(path_util.GetChromiumSrcDir(), 'tools', | 16 path_util.AddDirToPathIfNeeded(path_util.GetChromiumSrcDir(), 'tools', |
17 'telemetry') | 17 'telemetry') |
18 | 18 |
19 from telemetry.testing import unittest_runner | 19 from telemetry.testing import unittest_runner |
20 | 20 |
| 21 |
21 def main(): | 22 def main(): |
22 return unittest_runner.Run(gpu_project_config.CONFIG, no_browser=True) | 23 return unittest_runner.Run(gpu_project_config.CONFIG, no_browser=True) |
23 | 24 |
24 if __name__ == '__main__': | 25 if __name__ == '__main__': |
25 sys.exit(main()) | 26 sys.exit(main()) |
OLD | NEW |