Changeset 250877 in webkit


Ignore:
Timestamp:
Oct 8, 2019 4:38:12 PM (5 years ago)
Author:
Jonathan Bedard
Message:

REGRESSION (r250375): [old EWS] JSC EWS is always marking Patches as success
https://bugs.webkit.org/show_bug.cgi?id=202419

Rubber-stamped by Aakash Jain.

  • Scripts/webkitpy/common/system/executive.py:

(Executive._run_command_with_teed_output): Return exit code.

  • Scripts/webkitpy/common/system/executive_unittest.py:

(ExecutiveTest.test_run_command_with_bad_command): Test that exceptions are raised
For non-zero exit codes.

Location:
trunk/Tools
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/Tools/ChangeLog

    r250869 r250877  
     12019-10-08  Jonathan Bedard  <jbedard@apple.com>
     2
     3        REGRESSION (r250375): [old EWS] JSC EWS is always marking Patches as success
     4        https://bugs.webkit.org/show_bug.cgi?id=202419
     5
     6        Rubber-stamped by Aakash Jain.
     7
     8        * Scripts/webkitpy/common/system/executive.py:
     9        (Executive._run_command_with_teed_output): Return exit code.
     10        * Scripts/webkitpy/common/system/executive_unittest.py:
     11        (ExecutiveTest.test_run_command_with_bad_command): Test that exceptions are raised
     12        For non-zero exit codes.
     13
    1142019-10-08  Jonathan Bedard  <jbedard@apple.com>
    215
  • trunk/Tools/Scripts/webkitpy/common/system/executive.py

    r250375 r250877  
    129129                output_line = child_process.stdout.readline()
    130130                teed_output.write(unicode_compatibility.decode_for(output_line, str))
     131            return child_process.poll()
    131132
    132133    # FIXME: Remove this deprecated method and move callers to run_command.
  • trunk/Tools/Scripts/webkitpy/common/system/executive_unittest.py

    r250375 r250877  
    106106
    107107    def test_run_command_with_bad_command(self):
    108         def run_bad_command():
    109             Executive().run_command(["foo_bar_command_blah"], ignore_errors=True, return_exit_code=True)
    110         self.assertRaises(OSError, run_bad_command)
     108        self.assertRaises(OSError, lambda: Executive().run_command(["foo_bar_command_blah"], ignore_errors=True, return_exit_code=True))
     109        self.assertRaises(OSError, lambda: Executive().run_and_throw_if_fail(["foo_bar_command_blah"], quiet=True))
     110        self.assertRaises(ScriptError, lambda: Executive().run_command(['python', '-c', 'import sys; sys.exit(1)']))
     111        self.assertRaises(ScriptError, lambda: Executive().run_and_throw_if_fail(['python', '-c', 'import sys; sys.exit(1)'], quiet=True))
    111112
    112113    def test_run_command_args_type(self):
Note: See TracChangeset for help on using the changeset viewer.