| OLD | NEW |
| 1 #!/usr/bin/env python | 1 #!/usr/bin/env python |
| 2 # Copyright 2014 The LUCI Authors. All rights reserved. | 2 # Copyright 2014 The LUCI Authors. All rights reserved. |
| 3 # Use of this source code is governed by the Apache v2.0 license that can be | 3 # Use of this source code is governed under the Apache License, Version 2.0 |
| 4 # found in the LICENSE file. | 4 # that can be found in the LICENSE file. |
| 5 | 5 |
| 6 """Runs the coverage tool on unit tests in %s and prints out report. | 6 """Runs the coverage tool on unit tests in %s and prints out report. |
| 7 | 7 |
| 8 The tests are run in parallel for maximum efficiency. | 8 The tests are run in parallel for maximum efficiency. |
| 9 """ | 9 """ |
| 10 | 10 |
| 11 import optparse | 11 import optparse |
| 12 import os | 12 import os |
| 13 import socket | 13 import socket |
| 14 import subprocess | 14 import subprocess |
| (...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 145 return len(results) - sum(results) | 145 return len(results) - sum(results) |
| 146 finally: | 146 finally: |
| 147 os.remove(rcfile) | 147 os.remove(rcfile) |
| 148 | 148 |
| 149 | 149 |
| 150 if __name__ == '__main__': | 150 if __name__ == '__main__': |
| 151 sys.exit(main( | 151 sys.exit(main( |
| 152 ROOT_DIR, | 152 ROOT_DIR, |
| 153 ('third_party', 'tools'), | 153 ('third_party', 'tools'), |
| 154 'PRESUBMIT.py,third_party/*,tools/*')) | 154 'PRESUBMIT.py,third_party/*,tools/*')) |
| OLD | NEW |