|
28 | 28 | import reframe.utility.jsonext as jsonext |
29 | 29 | import reframe.utility.osext as osext |
30 | 30 | import reframe.utility.typecheck as typ |
| 31 | +from reframe.core.warnings import suppress_deprecations |
31 | 32 | from reframe.frontend.testgenerators import (distribute_tests, |
32 | 33 | getallnodes, repeat_tests, |
33 | 34 | parameterize_tests) |
@@ -149,13 +150,18 @@ def describe_checks(testcases, printer): |
149 | 150 | # |
150 | 151 | # 1. Add other fields that are relevant for users |
151 | 152 | # 2. Remove all private fields |
152 | | - rec['name'] = tc.check.name |
153 | | - rec['unique_name'] = tc.check.unique_name |
154 | | - rec['display_name'] = tc.check.display_name |
| 153 | + cls = type(tc.check) |
| 154 | + if hasattr(cls, 'loggable_attrs'): |
| 155 | + for name, alt_name in cls.loggable_attrs(): |
| 156 | + key = alt_name if alt_name else name |
| 157 | + try: |
| 158 | + with suppress_deprecations(): |
| 159 | + rec.setdefault(key, getattr(tc.check, name)) |
| 160 | + except AttributeError: |
| 161 | + rec.setdefault(key, '<undefined>') |
| 162 | + |
155 | 163 | rec['pipeline_hooks'] = {} |
156 | 164 | rec['perf_variables'] = list(rec['perf_variables'].keys()) |
157 | | - rec['prefix'] = tc.check.prefix |
158 | | - rec['variant_num'] = tc.check.variant_num |
159 | 165 | for stage, hooks in tc.check.pipeline_hooks().items(): |
160 | 166 | for hk in hooks: |
161 | 167 | if hk.__name__ not in tc.check.disabled_hooks: |
|
0 commit comments