From dbcae9d07be758e2fbb14f6f8dcd3d131c7fbd19 Mon Sep 17 00:00:00 2001 From: Cédric Ollivier Date: Wed, 28 Feb 2018 18:46:13 +0100 Subject: Switch from /home/opnfv/functest to /var/lib/xtesting MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Functest containers will have to create symlinks to allow publishing artifacts. All classes create the mandatory dirs. Change-Id: Ia1f215005d553dd6d64685e4d8a3f5c843c5db7a Signed-off-by: Cédric Ollivier --- xtesting/ci/run_tests.py | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'xtesting/ci/run_tests.py') diff --git a/xtesting/ci/run_tests.py b/xtesting/ci/run_tests.py index 5c9143a3..8c32ee12 100644 --- a/xtesting/ci/run_tests.py +++ b/xtesting/ci/run_tests.py @@ -14,6 +14,7 @@ """ import argparse +import errno import importlib import logging import logging.config @@ -25,6 +26,7 @@ import pkg_resources import enum import prettytable +import six import yaml from xtesting.ci import tier_builder @@ -293,6 +295,12 @@ class Runner(object): def main(): """Entry point""" + try: + os.makedirs('/var/lib/xtesting/results/') + except OSError as ex: + if ex.errno != errno.EEXIST: + six.print_("Cannot create /var/lib/xtesting/results/") + return testcase.TestCase.EX_RUN_ERROR logging.config.fileConfig(pkg_resources.resource_filename( 'xtesting', 'ci/logging.ini')) logging.captureWarnings(True) -- cgit 1.2.3-korg