Tools: build_binaries.py: honour BUILDLOGS environment variable

This commit is contained in:
Peter Barker 2019-08-21 10:48:05 +10:00 committed by Peter Barker
parent 592c7acc4c
commit cd45f3a14c
1 changed files with 5 additions and 2 deletions

View File

@ -673,6 +673,10 @@ is bob we will attempt to checkout bob-AVR'''
self.progress("Removing (%s)" % (self.tmpdir,))
shutil.rmtree(self.tmpdir)
def buildlogs_dirpath(self):
return os.getenv("BUILDLOGS",
os.path.join(os.getcwd(), "..", "buildlogs"))
def run(self):
self.validate()
@ -706,8 +710,7 @@ is bob we will attempt to checkout bob-AVR'''
self.mkpath(os.path.join("binaries", self.hdate_ym,
self.hdate_ymdhm))
self.binaries = os.path.join(os.getcwd(), "..", "buildlogs",
"binaries")
self.binaries = os.path.join(self.buildlogs_dirpath(), "binaries")
self.basedir = os.getcwd()
self.error_strings = []