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 os | |
12 import subprocess | |
13 import sys | 11 import sys |
14 | 12 |
15 from gpu_tests import path_util | 13 from gpu_tests import path_util |
16 import gpu_project_config | 14 import gpu_project_config |
17 | 15 |
18 path_util.AddDirToPathIfNeeded(path_util.GetChromiumSrcDir(), 'tools', | 16 path_util.AddDirToPathIfNeeded(path_util.GetChromiumSrcDir(), 'tools', |
19 'telemetry') | 17 'telemetry') |
20 | 18 |
21 from telemetry.testing import unittest_runner | 19 from telemetry.testing import unittest_runner |
22 | 20 |
23 def main(): | 21 def main(): |
24 return unittest_runner.Run(gpu_project_config.CONFIG, no_browser=True) | 22 return unittest_runner.Run(gpu_project_config.CONFIG, no_browser=True) |
25 | 23 |
26 if __name__ == '__main__': | 24 if __name__ == '__main__': |
27 sys.exit(main()) | 25 sys.exit(main()) |
OLD | NEW |