From d8c4c5652bc414826dc2fbe00be8461598abd759 Mon Sep 17 00:00:00 2001 From: wangxianzhu Date: Tue, 15 Dec 2015 15:39:51 -0800 Subject: Provide option to print stdout/stderr during bisect Sometimes we need to look at stdout/stderr to determine if a revision is good (e.g. when bisecting crbug.com/566275). Review URL: https://codereview.chromium.org/1514803003 Cr-Commit-Position: refs/heads/master@{#365391} --- tools/bisect-builds.py | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'tools/bisect-builds.py') diff --git a/tools/bisect-builds.py b/tools/bisect-builds.py index 06ab8bd..98b17e3 100755 --- a/tools/bisect-builds.py +++ b/tools/bisect-builds.py @@ -705,12 +705,15 @@ def AskIsGoodBuild(rev, official_builds, status, stdout, stderr): # Loop until we get a response that we can parse. while True: response = raw_input('Revision %s is ' - '[(g)ood/(b)ad/(r)etry/(u)nknown/(q)uit]: ' % + '[(g)ood/(b)ad/(r)etry/(u)nknown/(s)tdout/(q)uit]: ' % str(rev)) - if response and response in ('g', 'b', 'r', 'u'): + if response in ('g', 'b', 'r', 'u'): return response - if response and response == 'q': + if response == 'q': raise SystemExit() + if response == 's': + print stdout + print stderr def IsGoodASANBuild(rev, official_builds, status, stdout, stderr): -- cgit v1.1