aboutsummaryrefslogtreecommitdiffstats
path: root/testcases
diff options
context:
space:
mode:
authormeimei <meimei@huawei.com>2016-08-12 15:50:19 +0800
committermeimei <meimei@huawei.com>2016-08-12 15:50:19 +0800
commit813da4ed91306ba26402ed20eba38206168a56c8 (patch)
tree409efc92796c8f381c772a07af29371e8aadffe3 /testcases
parenta3e2a96de1bdbaca8927079c9d406bffc8307ded (diff)
[bugfix] should create result folder for multisite
Change-Id: I004225131de57f1597edc62558a3a3e42f31b504 Signed-off-by: meimei <meimei@huawei.com>
Diffstat (limited to 'testcases')
-rwxr-xr-xtestcases/OpenStack/tempest/gen_tempest_conf.py4
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 79236b958..4aa814a51 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)