Remove RuncommandCaptureOutput
Switch to use RunCommand with capture_output=True
BUG=chromium:339596
CQ-DEPEND=CL:184448
CQ-DEPEND=CL:184474
TEST=trybot runs
Change-Id: I5f7d42a67c2ce3af36655fd5c9ca4d2b1307f17a
Reviewed-on: https://chromium-review.googlesource.com/184478
Reviewed-by: David James <davidjames@chromium.org>
Commit-Queue: Yu-Ju Hong <yjhong@chromium.org>
Tested-by: Yu-Ju Hong <yjhong@chromium.org>
diff --git a/host/lib/tools.py b/host/lib/tools.py
index b7a8164..ff11c36 100755
--- a/host/lib/tools.py
+++ b/host/lib/tools.py
@@ -199,8 +199,8 @@
if sudo and os.getuid():
cmd.insert(0, 'sudo')
try:
- result = cros_build_lib.RunCommandCaptureOutput(
- cmd, cwd=cwd, print_cmd=self._out.verbose > 3,
+ result = cros_build_lib.RunCommand(
+ cmd, cwd=cwd, print_cmd=self._out.verbose > 3, capture_output=True,
combine_stdout_stderr=True, error_code_ok=True)
except cros_build_lib.RunCommandError as ex:
raise CmdError(str(ex))
@@ -365,6 +365,7 @@
directory.
preserve: a Boolean. If outdir above is None and preserve is False, the
created temporary directory will be destroyed on exit.
+
Raises:
OSError: If it cannot create the output directory.
"""