Changeset 57119 in webkit
- Timestamp:
- Apr 5, 2010 8:59:15 PM (14 years ago)
- Location:
- trunk/WebKitTools
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/WebKitTools/ChangeLog
r57115 r57119 1 2010-04-05 Chris Jerdonek <cjerdonek@webkit.org> 2 3 Reviewed by Shinichiro Hamaji. 4 5 Fixed check-webkit-style issue where the script was prematurely 6 exiting when encountering deleted files in patches. 7 8 https://bugs.webkit.org/show_bug.cgi?id=37122 9 10 * Scripts/webkitpy/style/checker.py: 11 - Changed non-existent file message from ERROR to WARN. 12 - StyleChecker.check_file() no longer raises an exception when 13 a file is not found. 14 15 * Scripts/webkitpy/style/checker_unittest.py: 16 - Updated unit tests as necessary. 17 1 18 2010-04-05 Adam Barth <abarth@webkit.org> 2 19 -
trunk/WebKitTools/Scripts/webkitpy/style/checker.py
r57066 r57119 679 679 680 680 if not os_path_exists(file_path): 681 _log. error("File does not exist: %s" % file_path)682 sys.exit(1)681 _log.warn("Skipping non-existent file: %s" % file_path) 682 return 683 683 684 684 _log.debug("Checking: " + file_path) -
trunk/WebKitTools/Scripts/webkitpy/style/checker_unittest.py
r57066 r57119 642 642 643 643 # Check the outcome. 644 self.assertRaises(SystemExit, self.call_check_file, file_path) 645 self.assertLog(["ERROR: File does not exist: " 646 "file_does_not_exist.txt\n"]) 644 self.call_check_file(file_path) 645 self.assert_attributes(None, None, None, "") 646 self.assertLog(['WARNING: Skipping non-existent file: ' 647 'file_does_not_exist.txt\n']) 647 648 648 649 def test_check_file_on_skip_without_warning(self):
Note: See TracChangeset
for help on using the changeset viewer.