(test) build dir is an absolute path

This commit is contained in:
Benjamin Sergeant 2019-04-19 11:45:02 -07:00
parent 9fe3811c45
commit 7e2c1f274b

View File

@ -422,7 +422,10 @@ def run(testName, buildDir, sanitizer, xmlOutput, testRunName, buildOnly, useLLD
def main():
buildDir = 'build/' + platform.system()
root = os.path.dirname(os.path.realpath(__file__))
os.chdir(root)
buildDir = os.path.join(root, 'build', platform.system())
if not os.path.exists(buildDir):
os.makedirs(buildDir)
@ -482,7 +485,4 @@ def main():
if __name__ == '__main__':
root = os.path.dirname(os.path.realpath(__file__))
os.chdir(root)
main()