Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1)

Unified Diff: tools/bisect-perf-regression.py

Issue 555503004: Set appropriate working directory on build failure (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/bisect-perf-regression.py
diff --git a/tools/bisect-perf-regression.py b/tools/bisect-perf-regression.py
index 9536f6c35016057dbe7cb881128eb2605e374431..67097ed1233e76cf916733fe8eb77c001c544c90 100755
--- a/tools/bisect-perf-regression.py
+++ b/tools/bisect-perf-regression.py
@@ -1525,6 +1525,8 @@ class BisectPerformanceMetrics(object):
"""
if self.opts.debug_ignore_build:
return True
+
+ build_success = False
cwd = os.getcwd()
qyearsley 2014/09/09 00:59:57 (Note, somewhat unrelated to this CL: this variabl
os.chdir(self.src_cwd)
# Fetch build archive for the given revision from the cloud storage when
@@ -1535,16 +1537,14 @@ class BisectPerformanceMetrics(object):
# Create a DEPS patch with new revision for dependency repository.
revision, deps_patch = self.CreateDEPSPatch(depot, revision)
if self.DownloadCurrentBuild(revision, patch=deps_patch):
- os.chdir(cwd)
if deps_patch:
# Reverts the changes to DEPS file.
self.source_control.CheckoutFileAtRevision(
bisect_utils.FILE_DEPS, revision, cwd=self.src_cwd)
- return True
- return False
-
- # These codes are executed when bisect bots builds binaries locally.
- build_success = self.builder.Build(depot, self.opts)
+ build_success = True
+ else:
+ # These codes are executed when bisect bots builds binaries locally.
+ build_success = self.builder.Build(depot, self.opts)
os.chdir(cwd)
return build_success
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698