Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Polish test-check/dmesg documentation #2897

Merged
merged 1 commit into from
May 30, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading