Handle tempest changing to workspace directory

This commit is contained in:
Corey Bryant
2020-03-11 14:22:27 +00:00
parent 67de027d98
commit a1f34e2c01

View File

@@ -49,7 +49,9 @@ class TempestTest():
tempest_options.extend(['--blacklist-file', black_file])
print(tempest_options)
the_app = tempest.cmd.main.Main()
project_root = os.getcwd()
_exec_tempest = the_app.run(tempest_options)
os.chdir(project_root)
if _exec_tempest != 0:
return False
return True