Changeset 51173 in webkit
- Timestamp:
- Nov 18, 2009 9:47:27 PM (14 years ago)
- Location:
- trunk/WebKitTools
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/WebKitTools/ChangeLog
r51167 r51173 1 2009-11-18 Shinichiro Hamaji <hamaji@chromium.org> 2 3 Reviewed by Eric Seidel. 4 5 GitTest.test_create_binary_patch fails if /tmp is symlink 6 https://bugs.webkit.org/show_bug.cgi?id=31536 7 8 * Scripts/modules/scm_unittest.py: 9 1 10 2009-11-18 Yaar Schnitman <yaar@chromium.org> 2 11 -
trunk/WebKitTools/Scripts/modules/scm_unittest.py
r51010 r51173 564 564 # Create a git binary patch and check the contents. 565 565 scm = detect_scm_system(self.git_checkout_path) 566 test_file_path = os.path.join(self.git_checkout_path, 'binary_file') 566 test_file_name = 'binary_file' 567 test_file_path = os.path.join(self.git_checkout_path, test_file_name) 567 568 file_contents = ''.join(map(chr, range(256))) 568 569 write_into_file_at_path(test_file_path, file_contents) 569 run(['git', 'add', test_file_ path])570 run(['git', 'add', test_file_name]) 570 571 patch = scm.create_patch() 571 572 self.assertTrue(re.search(r'\nliteral 0\n', patch)) … … 573 574 574 575 # Check if we can apply the created patch. 575 run(['git', 'rm', '-f', test_file_ path])576 run(['git', 'rm', '-f', test_file_name]) 576 577 self._setup_webkittools_scripts_symlink(scm) 577 578 self.scm.apply_patch(self._create_patch(patch)) … … 580 581 # Check if we can create a patch from a local commit. 581 582 write_into_file_at_path(test_file_path, file_contents) 582 run(['git', 'add', test_file_ path])583 run(['git', 'add', test_file_name]) 583 584 run(['git', 'commit', '-m', 'binary diff']) 584 585 patch_from_local_commit = scm.create_patch_from_local_commit('HEAD')
Note: See TracChangeset
for help on using the changeset viewer.