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

Side by Side Diff: tests/gclient_test.py

Issue 273010: Fix depot_tools unit tests on Windows. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/tools/depot_tools/
Patch Set: '' Created 11 years, 2 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
« no previous file with comments | « tests/gclient_scm_test.py ('k') | tests/trychange_unittest.py » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 #!/usr/bin/python 1 #!/usr/bin/python
2 # 2 #
3 # Copyright 2008-2009 Google Inc. All Rights Reserved. 3 # Copyright 2008-2009 Google Inc. All Rights Reserved.
4 # 4 #
5 # Licensed under the Apache License, Version 2.0 (the "License"); 5 # Licensed under the Apache License, Version 2.0 (the "License");
6 # you may not use this file except in compliance with the License. 6 # you may not use this file except in compliance with the License.
7 # You may obtain a copy of the License at 7 # You may obtain a copy of the License at
8 # 8 #
9 # http://www.apache.org/licenses/LICENSE-2.0 9 # http://www.apache.org/licenses/LICENSE-2.0
10 # 10 #
(...skipping 424 matching lines...) Expand 10 before | Expand all | Expand 10 after
435 " 'url': '%s',\n" 435 " 'url': '%s',\n"
436 " 'custom_deps': {},\n" 436 " 'custom_deps': {},\n"
437 "} ]\n" 437 "} ]\n"
438 ) % (solution_name, self.url) 438 ) % (solution_name, self.url)
439 439
440 deps = ( 440 deps = (
441 "use_relative_paths = True\n" 441 "use_relative_paths = True\n"
442 "deps = {\n" 442 "deps = {\n"
443 " 'src/t': 'svn://scm.t/trunk',\n" 443 " 'src/t': 'svn://scm.t/trunk',\n"
444 "}\n") 444 "}\n")
445 445 entry_path = os.path.join(solution_name, 'src', 't').replace('\\', '\\\\')
446 entries_content = ( 446 entries_content = (
447 "entries = \\\n" 447 "entries = \\\n"
448 "{ '%s': '%s',\n" 448 "{ '%s': '%s',\n"
449 " '%s': 'svn://scm.t/trunk'}\n" 449 " '%s': 'svn://scm.t/trunk'}\n"
450 ) % (solution_name, self.url, os.path.join(solution_name, 'src', 't')) 450 ) % (solution_name, self.url, entry_path)
451 451
452 scm_wrapper_sol = self.mox.CreateMockAnything() 452 scm_wrapper_sol = self.mox.CreateMockAnything()
453 scm_wrapper_t = self.mox.CreateMockAnything() 453 scm_wrapper_t = self.mox.CreateMockAnything()
454 454
455 options = self.Options() 455 options = self.Options()
456 456
457 gclient.os.path.exists(os.path.join(self.root_dir, solution_name, 'src', 457 gclient.os.path.exists(os.path.join(self.root_dir, solution_name, 'src',
458 't', '.git') 458 't', '.git')
459 ).AndReturn(False) 459 ).AndReturn(False)
460 gclient.os.path.exists(os.path.join(self.root_dir, solution_name, '.git') 460 gclient.os.path.exists(os.path.join(self.root_dir, solution_name, '.git')
(...skipping 678 matching lines...) Expand 10 before | Expand all | Expand 10 after
1139 """ 1139 """
1140 gclient_scm.CaptureSVN = CaptureSVNMock 1140 gclient_scm.CaptureSVN = CaptureSVNMock
1141 info = gclient_scm.CaptureSVNStatus(None) 1141 info = gclient_scm.CaptureSVNStatus(None)
1142 self.assertEquals(info, []) 1142 self.assertEquals(info, [])
1143 1143
1144 1144
1145 if __name__ == '__main__': 1145 if __name__ == '__main__':
1146 unittest.main() 1146 unittest.main()
1147 1147
1148 # vim: ts=2:sw=2:tw=80:et: 1148 # vim: ts=2:sw=2:tw=80:et:
OLDNEW
« no previous file with comments | « tests/gclient_scm_test.py ('k') | tests/trychange_unittest.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698