Changeset 79046 in webkit
- Timestamp:
- Feb 18, 2011 3:47:12 PM (13 years ago)
- Location:
- trunk/Tools
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Tools/ChangeLog
r79045 r79046 1 2011-02-18 Dirk Pranke <dpranke@chromium.org> 2 3 Reviewed by Adam Roben. 4 5 Skip pretty patch unit tests if ruby isn't installed. 6 7 https://bugs.webkit.org/show_bug.cgi?id=54699 8 9 * Scripts/webkitpy/common/prettypatch_unittest.py: 10 1 11 2011-02-18 Dirk Pranke <dpranke@chromium.org> 2 12 -
trunk/Tools/Scripts/webkitpy/common/prettypatch_unittest.py
r58803 r79046 35 35 36 36 class PrettyPatchTest(unittest.TestCase): 37 def check_ruby(self): 38 executive = Executive() 39 try: 40 result = executive.run_command(['ruby', '--version']) 41 except OSError, e: 42 return False 43 return True 37 44 38 45 _diff_with_multiple_encodings = """ … … 60 67 61 68 def test_pretty_diff_encodings(self): 69 if not self.check_ruby(): 70 return 71 62 72 pretty_patch = PrettyPatch(Executive(), self._webkit_root()) 63 73 pretty = pretty_patch.pretty_diff(self._diff_with_multiple_encodings) … … 66 76 67 77 def test_pretty_print_empty_string(self): 78 if not self.check_ruby(): 79 return 80 68 81 # Make sure that an empty diff does not hang the process. 69 82 pretty_patch = PrettyPatch(Executive(), self._webkit_root())
Note: See TracChangeset
for help on using the changeset viewer.