d99a0e33fedd2f59586ee8658c2146041f2140d2
[functest-xtesting.git] / xtesting / utils / constants.py
1 #!/usr/bin/env python
2
3 # pylint: disable=missing-docstring
4
5 import os
6 import sys
7
8 import pkg_resources
9
10 ENV_FILE = '/var/lib/xtesting/conf/env_file'
11
12 XTESTING_PATHES = [
13     "~/.xtesting", "/etc/xtesting", os.path.join(sys.prefix + "/etc/xtesting")]
14
15 TESTCASE_DESCRIPTION = 'testcases.yaml'
16 TESTCASE_DESCRIPTION_DEFAULT = pkg_resources.resource_filename(
17     'xtesting', f'ci/{TESTCASE_DESCRIPTION}')
18
19 RESULTS_DIR = '/var/lib/xtesting/results'
20 LOG_PATH = os.path.join(RESULTS_DIR, 'xtesting.log')
21 DEBUG_LOG_PATH = os.path.join(RESULTS_DIR, 'xtesting.debug.log')
22
23 INI_PATH_DEFAULT = pkg_resources.resource_filename(
24     'xtesting', 'ci/logging.ini')
25 DEBUG_INI_PATH_DEFAULT = pkg_resources.resource_filename(
26     'xtesting', 'ci/logging.debug.ini')