cros_build_lib: run: fix capture_output/stderr mixing
Python 3 does not allow specifying capture_output with either stdout
or stderr. We allowed mixing where capture_output sets a default and
the others override the respective settings. With direct calls, this
doesn't gain us much, so convert to it to be compatible with Python 3.
Also delete one redundant stdout=True & capture_output=True call.
BUG=b:187789262
TEST=`./run_tests` passes
Change-Id: I9b9e0a2cf4ca63527812f619e3e60647e5e7e590
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/chromite/+/3860484
Commit-Queue: Cindy Lin <xcl@google.com>
Reviewed-by: Cindy Lin <xcl@google.com>
Auto-Submit: Mike Frysinger <vapier@chromium.org>
Tested-by: Mike Frysinger <vapier@chromium.org>
diff --git a/scripts/deploy_chrome.py b/scripts/deploy_chrome.py
index 2e02c16..55d6530 100644
--- a/scripts/deploy_chrome.py
+++ b/scripts/deploy_chrome.py
@@ -168,8 +168,7 @@
def _GetStagingDirSize(self):
result = cros_build_lib.dbg_run(['du', '-ks', self.staging_dir],
- stdout=True, capture_output=True,
- encoding='utf-8')
+ capture_output=True, encoding='utf-8')
return int(result.stdout.split()[0])
def _ChromeFileInUse(self):