aboutsummaryrefslogtreecommitdiffstats
path: root/xtesting/ci
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/ci
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/ci')
-rw-r--r--xtesting/ci/run_tests.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/xtesting/ci/run_tests.py b/xtesting/ci/run_tests.py
index ea606bd4..989969bc 100644
--- a/xtesting/ci/run_tests.py
+++ b/xtesting/ci/run_tests.py
@@ -308,17 +308,17 @@ class Runner():
def main():
"""Entry point"""
try:
- os.makedirs('/var/lib/xtesting/results/')
+ os.makedirs(constants.RESULTS_DIR)
except OSError as ex:
if ex.errno != errno.EEXIST:
- six.print_("Cannot create /var/lib/xtesting/results/")
+ six.print_("{} {}".format("Cannot create", constants.RESULTS_DIR))
return testcase.TestCase.EX_RUN_ERROR
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)
parser = RunTestsParser()
args = parser.parse_args(sys.argv[1:])