From 180e1380648fcb3ea7b8b83e49f8b18598f15320 Mon Sep 17 00:00:00 2001 From: Samuel Moors Date: Mon, 9 Sep 2024 13:50:13 +0200 Subject: [PATCH] use reframe warning --- eessi/testsuite/common_config.py | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/eessi/testsuite/common_config.py b/eessi/testsuite/common_config.py index 94a6849e..e3298506 100644 --- a/eessi/testsuite/common_config.py +++ b/eessi/testsuite/common_config.py @@ -1,5 +1,6 @@ import os -import warnings + +import reframe.core.logging as rlog perflog_format = '|'.join([ '%(check_job_completion_time)s', @@ -96,12 +97,11 @@ def common_eessi_init(eessi_version=None): eessi_cvmfs_repo = os.getenv('EESSI_CVMFS_REPO', None) if eessi_cvmfs_repo is None: - warn_msg = '\n' + '\n'.join([ - "EESSI WARNING: Environment variable 'EESSI_CVMFS_REPO' was not found.", - "EESSI WARNING: If you do not intend to use the EESSI software stack, this is perfectly fine.", - "EESSI WARNING: To use EESSI, initialize the EESSI environment before running the test suite.", - ]) - warnings.warn(warn_msg) + rlog.getlogger().warning('\n'.join([ + "Environment variable 'EESSI_CVMFS_REPO' is not defined.", + "If you do not intend to use the EESSI software stack, this is perfectly fine.", + "To use EESSI, initialize the EESSI environment before running the test suite.", + ])) return '' eessi_init = []