summaryrefslogtreecommitdiffstats
path: root/tools/bisect-builds.py
diff options
context:
space:
mode:
authorwangxianzhu <wangxianzhu@chromium.org>2015-12-15 15:39:51 -0800
committerCommit bot <commit-bot@chromium.org>2015-12-15 23:40:41 +0000
commitd8c4c5652bc414826dc2fbe00be8461598abd759 (patch)
tree46454f35661d5009231ba82e8dcdda8f743818e9 /tools/bisect-builds.py
parent3eb08ec93e2a0de3491ef045ccc355e5079f8dd7 (diff)
downloadchromium_src-d8c4c5652bc414826dc2fbe00be8461598abd759.zip
chromium_src-d8c4c5652bc414826dc2fbe00be8461598abd759.tar.gz
chromium_src-d8c4c5652bc414826dc2fbe00be8461598abd759.tar.bz2
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}
Diffstat (limited to 'tools/bisect-builds.py')
-rwxr-xr-xtools/bisect-builds.py9
1 files changed, 6 insertions, 3 deletions
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):