(test) build dir is an absolute path

This commit is contained in:
Benjamin Sergeant 2019-04-19 11:45:02 -07:00
parent 4c4137d9f2
commit 65db8c9b00

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()