Changeset 57119 in webkit


Ignore:
Timestamp:
Apr 5, 2010 8:59:15 PM (14 years ago)
Author:
hamaji@chromium.org
Message:

2010-04-05 Chris Jerdonek <Chris Jerdonek>

Reviewed by Shinichiro Hamaji.

Fixed check-webkit-style issue where the script was prematurely
exiting when encountering deleted files in patches.

https://bugs.webkit.org/show_bug.cgi?id=37122

  • Scripts/webkitpy/style/checker.py:
    • Changed non-existent file message from ERROR to WARN.
    • StyleChecker.check_file() no longer raises an exception when a file is not found.
  • Scripts/webkitpy/style/checker_unittest.py:
    • Updated unit tests as necessary.
Location:
trunk/WebKitTools
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/WebKitTools/ChangeLog

    r57115 r57119  
     12010-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
    1182010-04-05  Adam Barth  <abarth@webkit.org>
    219
  • trunk/WebKitTools/Scripts/webkitpy/style/checker.py

    r57066 r57119  
    679679
    680680        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
    683683
    684684        _log.debug("Checking: " + file_path)
  • trunk/WebKitTools/Scripts/webkitpy/style/checker_unittest.py

    r57066 r57119  
    642642
    643643        # 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'])
    647648
    648649    def test_check_file_on_skip_without_warning(self):
Note: See TracChangeset for help on using the changeset viewer.