Changeset 250877 in webkit
- Timestamp:
- Oct 8, 2019 4:38:12 PM (5 years ago)
- Location:
- trunk/Tools
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Tools/ChangeLog
r250869 r250877 1 2019-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 1 14 2019-10-08 Jonathan Bedard <jbedard@apple.com> 2 15 -
trunk/Tools/Scripts/webkitpy/common/system/executive.py
r250375 r250877 129 129 output_line = child_process.stdout.readline() 130 130 teed_output.write(unicode_compatibility.decode_for(output_line, str)) 131 return child_process.poll() 131 132 132 133 # FIXME: Remove this deprecated method and move callers to run_command. -
trunk/Tools/Scripts/webkitpy/common/system/executive_unittest.py
r250375 r250877 106 106 107 107 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)) 111 112 112 113 def test_run_command_args_type(self):
Note: See TracChangeset
for help on using the changeset viewer.