Skip to content

Commit 6b2988c

Browse files
authored
Merge pull request #3039 from vkarak/doc/document-check-result
[doc] Document `check_result` log attribute
2 parents 0e4f6b8 + 3e6a83d commit 6b2988c

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

docs/config_reference.rst

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1079,6 +1079,7 @@ All logging handlers share the following set of common attributes:
10791079
``%(check_prebuild_cmds)s``, The value of the :attr:`~reframe.core.pipeline.RegressionTest.prebuild_cmds` attribute.
10801080
``%(check_prefix)s``, The value of the :attr:`~reframe.core.pipeline.RegressionTest.prefix` attribute.
10811081
``%(check_prerun_cmds)s``, The value of the :attr:`~reframe.core.pipeline.RegressionTest.prerun_cmds` attribute.
1082+
``%(check_result)s``, The result of the test (``pass`` or ``fail``).
10821083
``%(check_readonly_files)s``, The value of the :attr:`~reframe.core.pipeline.RegressionTest.readonly_files` attribute.
10831084
``%(check_short_name)s``, The value of the :attr:`~reframe.core.pipeline.RegressionTest.short_name` attribute.
10841085
``%(check_sourcepath)s``, The value of the :attr:`~reframe.core.pipeline.RegressionTest.sourcepath` attribute.
@@ -1116,6 +1117,9 @@ All logging handlers share the following set of common attributes:
11161117
.. versionchanged:: 3.11.0
11171118
Limit the number of attributes that can be logged. User attributes or properties must be explicitly marked as "loggable" in order to be selectable for logging.
11181119

1120+
.. versionadded:: 4.0
1121+
The ``%(check_result)s`` specifier is added.
1122+
11191123
.. versionadded:: 4.3
11201124
The ``%(check_#ALL)s`` special specifier is added.
11211125

reframe/core/logging.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -789,13 +789,9 @@ def __init__(self, logger=None, check=None):
789789
'__rfm_check__': check,
790790
'__rfm_loggable_attrs__': [],
791791
'check_name': 'reframe',
792-
'check_jobid': None,
793792
'check_job_completion_time': None,
794793
'check_job_completion_time_unix': None,
795794
'check_info': 'reframe',
796-
'check_system': None,
797-
'check_partition': None,
798-
'check_environ': None,
799795
'check_perf_var': None,
800796
'check_perf_value': None,
801797
'check_perf_ref': None,

0 commit comments

Comments
 (0)