From 0ecab49059fb5a4bea9a0998c7fc7b320b23dd84 Mon Sep 17 00:00:00 2001 From: Nicholas Hastings Date: Sun, 29 Mar 2026 11:53:02 -0400 Subject: [PATCH] Fix dump_syms strerr getting swallowed --- tools/buildbot/upload_symbols.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/tools/buildbot/upload_symbols.py b/tools/buildbot/upload_symbols.py index 757e22fb..2e8c3e80 100644 --- a/tools/buildbot/upload_symbols.py +++ b/tools/buildbot/upload_symbols.py @@ -30,7 +30,7 @@ p = subprocess.Popen( ) stdout, stderr = p.communicate() out = stdout.decode('utf8') -err = stdout.decode('utf8') +err = stderr.decode('utf8') with open(symbol_file, 'w') as fp: fp.write(out) @@ -104,17 +104,17 @@ for i, line in enumerate(lines): index = 1 while lines[index].split(None, 1)[0] == 'INFO': - index += 1 + index += 1 for root, info in roots.items(): lines.insert(index, 'INFO REPO ' + ' '.join([info[1], info[0], root])) - index += 1 + index += 1 out = os.linesep.join(lines).encode('utf8') request = urllib.Request(SYMBOL_SERVER, out) request.add_header('Content-Type', 'text/plain') -if 'BREAKPAD_SYMBOL_SERVER_TOKEN' in os.environ: - request.add_header('X-Auth', os.environ['BREAKPAD_SYMBOL_SERVER_TOKEN']) +if 'BREAKPAD_SYMBOL_SERVER_TOKEN' in os.environ: + request.add_header('X-Auth', os.environ['BREAKPAD_SYMBOL_SERVER_TOKEN']) server_response = urllib.urlopen(request).read().decode('utf8').strip() print(server_response)