aboutsummaryrefslogtreecommitdiffstats
path: root/xtesting/core
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/core
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/core')
-rw-r--r--xtesting/core/campaign.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/xtesting/core/campaign.py b/xtesting/core/campaign.py
index 7c766e53..51a145c1 100644
--- a/xtesting/core/campaign.py
+++ b/xtesting/core/campaign.py
@@ -26,6 +26,7 @@ from six.moves import urllib
from xtesting.core import testcase
from xtesting.utils import env
+from xtesting.utils import constants
__author__ = "Cedric Ollivier <cedric.ollivier@orange.com>"
@@ -216,9 +217,9 @@ def main():
os.makedirs(testcase.TestCase.dir_results)
if env.get('DEBUG').lower() == 'true':
logging.config.fileConfig(pkg_resources.resource_filename(
- 'xtesting', 'ci/logging.debug.ini'))
+ 'xtesting', constants.DEBUG_INI_PATH))
else:
logging.config.fileConfig(pkg_resources.resource_filename(
- 'xtesting', 'ci/logging.ini'))
+ 'xtesting', constants.INI_PATH))
logging.captureWarnings(True)
Campaign.zip_campaign_files()