diff options
author | 2016-08-12 15:50:19 +0800 | |
---|---|---|
committer | 2016-08-12 15:50:19 +0800 | |
commit | 813da4ed91306ba26402ed20eba38206168a56c8 (patch) | |
tree | 409efc92796c8f381c772a07af29371e8aadffe3 /testcases/OpenStack/tempest/gen_tempest_conf.py | |
parent | a3e2a96de1bdbaca8927079c9d406bffc8307ded (diff) |
[bugfix] should create result folder for multisite
Change-Id: I004225131de57f1597edc62558a3a3e42f31b504
Signed-off-by: meimei <meimei@huawei.com>
Diffstat (limited to 'testcases/OpenStack/tempest/gen_tempest_conf.py')
-rwxr-xr-x | testcases/OpenStack/tempest/gen_tempest_conf.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/testcases/OpenStack/tempest/gen_tempest_conf.py b/testcases/OpenStack/tempest/gen_tempest_conf.py index 79236b95..4aa814a5 100755 --- a/testcases/OpenStack/tempest/gen_tempest_conf.py +++ b/testcases/OpenStack/tempest/gen_tempest_conf.py @@ -17,6 +17,7 @@ import shutil import functest.utils.functest_utils as ft_utils import functest.utils.functest_logger as ft_logger from run_tempest import configure_tempest +from run_tempest import TEMPEST_RESULTS_DIR logger = ft_logger.Logger("multisite").getLogger() @@ -112,6 +113,9 @@ def configure_tempest_multisite(deployment_dir): def main(): + if not os.path.exists(TEMPEST_RESULTS_DIR): + os.makedirs(TEMPEST_RESULTS_DIR) + deployment_dir = ft_utils.get_deployment_dir(logger) configure_tempest_multisite(deployment_dir) |