aboutsummaryrefslogtreecommitdiffstats
path: root/xtesting/utils/constants.py
diff options
context:
space:
mode:
authorVincent Danno <vincent.danno@orange.com>2021-05-10 11:27:15 +0200
committerVincent Danno <vincent.danno@orange.com>2021-05-10 15:39:17 +0200
commiteddde23de6b133486c6d23a19f9197025a00c459 (patch)
treed10031e6330beb2f78b380e079faa3dd5fada27b /xtesting/utils/constants.py
parent81576fd969217d38f2ccc26434ea286bb704df94 (diff)
Use constants instead of hard-coding paths
Signed-off-by: Vincent Danno <vincent.danno@orange.com> Change-Id: I9bef7db7584d6b615ef102d13797914095512733
Diffstat (limited to 'xtesting/utils/constants.py')
-rw-r--r--xtesting/utils/constants.py9
1 files changed, 9 insertions, 0 deletions
diff --git a/xtesting/utils/constants.py b/xtesting/utils/constants.py
index 18e03f68..7677f2e5 100644
--- a/xtesting/utils/constants.py
+++ b/xtesting/utils/constants.py
@@ -2,4 +2,13 @@
# pylint: disable=missing-docstring
+import os
+
ENV_FILE = '/var/lib/xtesting/conf/env_file'
+
+RESULTS_DIR = '/var/lib/xtesting/results/'
+LOG_PATH = os.path.join(RESULTS_DIR, 'xtesting.log')
+DEBUG_LOG_PATH = os.path.join(RESULTS_DIR, 'xtesting.debug.log')
+
+INI_PATH = 'ci/logging.ini'
+DEBUG_INI_PATH = 'ci/logging.debug.ini'