OLD | NEW |
1 #!/usr/bin/python | 1 #!/usr/bin/env python |
2 # Copyright (c) 2010 The Chromium Authors. All rights reserved. | 2 # Copyright (c) 2011 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 """Smoke tests for gclient.py. | 6 """Smoke tests for gclient.py. |
7 | 7 |
8 Shell out 'gclient' and run basic conformance tests. | 8 Shell out 'gclient' and run basic conformance tests. |
9 | 9 |
10 This test assumes GClientSmokeBase.URL_BASE is valid. | 10 This test assumes GClientSmokeBase.URL_BASE is valid. |
11 """ | 11 """ |
12 | 12 |
(...skipping 1161 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1174 | 1174 |
1175 if '-c' in sys.argv: | 1175 if '-c' in sys.argv: |
1176 COVERAGE = True | 1176 COVERAGE = True |
1177 sys.argv.remove('-c') | 1177 sys.argv.remove('-c') |
1178 if os.path.exists('.coverage'): | 1178 if os.path.exists('.coverage'): |
1179 os.remove('.coverage') | 1179 os.remove('.coverage') |
1180 os.environ['COVERAGE_FILE'] = os.path.join( | 1180 os.environ['COVERAGE_FILE'] = os.path.join( |
1181 os.path.dirname(os.path.dirname(os.path.abspath(__file__))), | 1181 os.path.dirname(os.path.dirname(os.path.abspath(__file__))), |
1182 '.coverage') | 1182 '.coverage') |
1183 unittest.main() | 1183 unittest.main() |
OLD | NEW |