From b4a7cffc40216ae4e4a780bae6621bd79ecc10fd Mon Sep 17 00:00:00 2001 From: Josip Sokcevic Date: Wed, 9 Jun 2021 22:56:42 +0000 Subject: [PATCH] [py3] Decode stdout in presubmit runs Bug: 1215375 Change-Id: I068801f5e7482cf13cf70dd6c3a70c39f22a39f3 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/2949974 Commit-Queue: Dirk Pranke Auto-Submit: Josip Sokcevic Reviewed-by: Dirk Pranke --- presubmit_support.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/presubmit_support.py b/presubmit_support.py index 023243fd1..a44be31e0 100755 --- a/presubmit_support.py +++ b/presubmit_support.py @@ -208,7 +208,7 @@ class ThreadPool(object): stdout, _ = sigint_handler.wait(p, stdin) if timer.completed: stdout = 'Process timed out after %ss\n%s' % (self.timeout, stdout) - return p.returncode, stdout + return p.returncode, stdout.decode('utf-8', 'ignore'); def CallCommand(self, test): """Runs an external program.