Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1597)

Unified Diff: Tools/Scripts/webkitpy/common/system/executive_mock.py

Issue 663023008: Remove deprecated and unused run_and_throw_if_fail from webkitpy (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: Tools/Scripts/webkitpy/common/system/executive_mock.py
diff --git a/Tools/Scripts/webkitpy/common/system/executive_mock.py b/Tools/Scripts/webkitpy/common/system/executive_mock.py
index aa855d75d1391efe101348089f1123e2c2001015..1f137de283b0539e26882ab0d0be7cd13053e5c5 100644
--- a/Tools/Scripts/webkitpy/common/system/executive_mock.py
+++ b/Tools/Scripts/webkitpy/common/system/executive_mock.py
@@ -82,17 +82,6 @@ class MockExecutive(object):
_log.info("MOCK running_pids: %s" % running_pids)
return running_pids
- def run_and_throw_if_fail(self, args, quiet=False, cwd=None, env=None):
- self.calls.append(args)
- if self._should_log:
- env_string = ""
- if env:
- env_string = ", env=%s" % env
- _log.info("MOCK run_and_throw_if_fail: %s, cwd=%s%s" % (args, cwd, env_string))
- if self._should_throw_when_run.intersection(args):
- raise ScriptError("Exception for %s" % args, output="MOCK command output")
- return "MOCK output of child process"
-
def command_for_printing(self, args):
string_args = map(unicode, args)
return " ".join(string_args)
« no previous file with comments | « Tools/Scripts/webkitpy/common/system/executive.py ('k') | Tools/Scripts/webkitpy/common/system/executive_unittest.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698