(test) build dir is an absolute path
This commit is contained in:
parent
4c4137d9f2
commit
65db8c9b00
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user