From 813da4ed91306ba26402ed20eba38206168a56c8 Mon Sep 17 00:00:00 2001 From: meimei Date: Fri, 12 Aug 2016 15:50:19 +0800 Subject: [bugfix] should create result folder for multisite Change-Id: I004225131de57f1597edc62558a3a3e42f31b504 Signed-off-by: meimei --- testcases/OpenStack/tempest/gen_tempest_conf.py | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'testcases/OpenStack') 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) -- cgit 1.2.3-korg