From a1f34e2c0148fafd3686752db37d088ca737dca2 Mon Sep 17 00:00:00 2001 From: Corey Bryant Date: Wed, 11 Mar 2020 14:22:27 +0000 Subject: [PATCH] Handle tempest changing to workspace directory --- zaza/openstack/charm_tests/tempest/tests.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/zaza/openstack/charm_tests/tempest/tests.py b/zaza/openstack/charm_tests/tempest/tests.py index a4f97e4..0641520 100644 --- a/zaza/openstack/charm_tests/tempest/tests.py +++ b/zaza/openstack/charm_tests/tempest/tests.py @@ -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