Changeset 51173 in webkit


Ignore:
Timestamp:
Nov 18, 2009 9:47:27 PM (14 years ago)
Author:
hamaji@chromium.org
Message:

2009-11-18 Shinichiro Hamaji <hamaji@chromium.org>

Reviewed by Eric Seidel.

GitTest.test_create_binary_patch fails if /tmp is symlink
https://bugs.webkit.org/show_bug.cgi?id=31536

  • Scripts/modules/scm_unittest.py:
Location:
trunk/WebKitTools
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/WebKitTools/ChangeLog

    r51167 r51173  
     12009-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
    1102009-11-18  Yaar Schnitman  <yaar@chromium.org>
    211
  • trunk/WebKitTools/Scripts/modules/scm_unittest.py

    r51010 r51173  
    564564        # Create a git binary patch and check the contents.
    565565        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)
    567568        file_contents = ''.join(map(chr, range(256)))
    568569        write_into_file_at_path(test_file_path, file_contents)
    569         run(['git', 'add', test_file_path])
     570        run(['git', 'add', test_file_name])
    570571        patch = scm.create_patch()
    571572        self.assertTrue(re.search(r'\nliteral 0\n', patch))
     
    573574
    574575        # Check if we can apply the created patch.
    575         run(['git', 'rm', '-f', test_file_path])
     576        run(['git', 'rm', '-f', test_file_name])
    576577        self._setup_webkittools_scripts_symlink(scm)
    577578        self.scm.apply_patch(self._create_patch(patch))
     
    580581        # Check if we can create a patch from a local commit.
    581582        write_into_file_at_path(test_file_path, file_contents)
    582         run(['git', 'add', test_file_path])
     583        run(['git', 'add', test_file_name])
    583584        run(['git', 'commit', '-m', 'binary diff'])
    584585        patch_from_local_commit = scm.create_patch_from_local_commit('HEAD')
Note: See TracChangeset for help on using the changeset viewer.