aboutsummaryrefslogtreecommitdiffstats
path: root/xtesting/ci
diff options
context:
space:
mode:
authorCédric Ollivier <cedric.ollivier@orange.com>2018-02-28 18:46:13 +0100
committerCédric Ollivier <cedric.ollivier@orange.com>2018-02-28 19:13:53 +0100
commitdbcae9d07be758e2fbb14f6f8dcd3d131c7fbd19 (patch)
tree61f52ad7d2e9d74426d1d9204858963508144b46 /xtesting/ci
parent22b982b2156111e04a5d16da6c640ce3028a8916 (diff)
Switch from /home/opnfv/functest to /var/lib/xtesting
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 <cedric.ollivier@orange.com>
Diffstat (limited to 'xtesting/ci')
-rw-r--r--xtesting/ci/logging.ini2
-rw-r--r--xtesting/ci/run_tests.py8
-rw-r--r--xtesting/ci/testcases.yaml1
3 files changed, 10 insertions, 1 deletions
diff --git a/xtesting/ci/logging.ini b/xtesting/ci/logging.ini
index b1365f1e..fc011ad6 100644
--- a/xtesting/ci/logging.ini
+++ b/xtesting/ci/logging.ini
@@ -58,7 +58,7 @@ args=(sys.stdout,)
class=FileHandler
level=DEBUG
formatter=standard
-args=("/home/opnfv/xtesting/results/xtesting.log",)
+args=("/var/lib/xtesting/results/xtesting.log",)
[formatter_standard]
format=%(asctime)s - %(name)s - %(levelname)s - %(message)s
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)
diff --git a/xtesting/ci/testcases.yaml b/xtesting/ci/testcases.yaml
index 9c1cb506..42e71936 100644
--- a/xtesting/ci/testcases.yaml
+++ b/xtesting/ci/testcases.yaml
@@ -69,6 +69,7 @@ tiers:
-
case_name: fifth
project_name: xtesting
+ enabled: false
criteria: 100
blocking: false
description: ''