Rewrite last direct call to ci/testcases.yaml
[functest-xtesting.git] / xtesting / utils / constants.py
1 #!/usr/bin/env python
2
3 # Copyright (c) 2019 Orange and others.
4 #
5 # All rights reserved. This program and the accompanying materials
6 # are made available under the terms of the Apache License, Version 2.0
7 # which accompanies this distribution, and is available at
8 # http://www.apache.org/licenses/LICENSE-2.0
9
10 # pylint: disable=missing-docstring
11
12 import os
13 import sys
14
15 import pkg_resources
16
17 ENV_FILE = '/var/lib/xtesting/conf/env_file'
18
19 XTESTING_PATHES = [
20     "~/.xtesting", "/etc/xtesting", os.path.join(sys.prefix + "/etc/xtesting")]
21
22 TESTCASE_DESCRIPTION = 'testcases.yaml'
23 TESTCASE_DESCRIPTION_DEFAULT = pkg_resources.resource_filename(
24     'xtesting', f'ci/{TESTCASE_DESCRIPTION}')
25
26 RESULTS_DIR = '/var/lib/xtesting/results'
27 LOG_PATH = os.path.join(RESULTS_DIR, 'xtesting.log')
28 DEBUG_LOG_PATH = os.path.join(RESULTS_DIR, 'xtesting.debug.log')
29
30 INI_PATH_DEFAULT = pkg_resources.resource_filename(
31     'xtesting', 'ci/logging.ini')
32 DEBUG_INI_PATH_DEFAULT = pkg_resources.resource_filename(
33     'xtesting', 'ci/logging.debug.ini')