Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(82)

Side by Side Diff: tests/gclient_smoketest.py

Issue 6690034: Add more python 2.5 compatibility. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/tools/depot_tools
Patch Set: Don't force python 2.5 anymore (to be done in a separate change) Created 9 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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()
OLDNEW
« no previous file with comments | « tests/gclient_scm_test.py ('k') | tests/gclient_utils_test.py » ('j') | tests/owners_unittest.py » ('J')

Powered by Google App Engine
This is Rietveld 408576698