summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Peres <martin.peres@linux.intel.com>2015-08-27 16:36:12 +0300
committerMartin Peres <martin.peres@linux.intel.com>2015-08-31 19:58:14 +0300
commitba815f883e8dc61d20f73155d9ef65d9ec718b90 (patch)
tree4ec1b34675865d0563e8cc760e111ec3ece8d8ab
parent07b417dac014f1f270087e9b60a6a985b8258a17 (diff)
utils/bisect: display the first commit to be bisected
Suggested-by: Chris Wilson
-rwxr-xr-xutils/bisect.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/utils/bisect.py b/utils/bisect.py
index 4758d13..15e7a3a 100755
--- a/utils/bisect.py
+++ b/utils/bisect.py
@@ -113,13 +113,15 @@ print()
os.chdir(args.repo_path)
check_output(['git', 'bisect', 'start'], stderr=subprocess.STDOUT)
check_output(['git', 'bisect', 'good', args.BEFORE_COMMIT], stderr=subprocess.STDOUT)
-check_output(['git', 'bisect', 'bad', args.AFTER_COMMIT], stderr=subprocess.STDOUT)
+output = check_output(['git', 'bisect', 'bad', args.AFTER_COMMIT], stderr=subprocess.STDOUT).decode()
+print(output, end="")
while True:
perf = check_commit_perf(ezbench_cmd, "HEAD", logs_dir)
res = checkPerformance(before_perf, after_perf, threshold, perf)
print("Performance index = {perf} (diffThreshold = {diff}). Marking as {res}\n".format(perf=perf,
- diff=perf - threshold, res=res.upper()))
+ diff=perf - threshold,
+ res=res.upper()))
output = check_output(['git', 'bisect', res]).decode()
print(output, end="")