Skip to content

Commit

Permalink
Polish test-check/dmesg documentation (teemtee#2897)
Browse files Browse the repository at this point in the history
  • Loading branch information
happz authored and The-Mule committed Oct 14, 2024
1 parent ccee347 commit c7a8460
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions docs/scripts/generate-plugins.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@

REVIEWED_PLUGINS: tuple[str, ...] = (
'prepare/ansible',
'test-checks/dmesg'
)


Expand Down
2 changes: 1 addition & 1 deletion docs/templates/plugins.rst.j2
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ Configuration
{% if not actual_default %}
Default: *not set*
{% else %}
Default: {% for default_item in actual_default %}``{{ default_item.pattern | default(default_item) }}`` {% endfor %}
Default: {% for default_item in actual_default %}``{{ default_item.pattern | default(default_item) }}``{% if not loop.last %}, {% endif %}{% endfor %}
{% endif %}
{% else %}
{% set _ = LOGGER.warn("%s/%s.%s: could not render default value, '%s'" | format(STEP, PLUGIN_ID, field_name, actual_default)) %}
Expand Down
1 change: 1 addition & 0 deletions tmt/checks/dmesg.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ class DmesgCheck(Check):
output. If any of patterns is found, ``dmesg`` check will
report ``fail`` result.
""",
metavar='PATTERN',
normalize=tmt.utils.normalize_pattern_list,
exporter=lambda patterns: [pattern.pattern for pattern in patterns],
serialize=lambda patterns: [pattern.pattern for pattern in patterns],
Expand Down

0 comments on commit c7a8460

Please sign in to comment.