Skip to content

Commit

Permalink
Python runner: fix help message (#30259)
Browse files Browse the repository at this point in the history
Well, the first part of the help message. I still have NO idea
how to get the test parameters from the individual tests exposed.
  • Loading branch information
cecille authored and pull[bot] committed Feb 8, 2024
1 parent ae251e2 commit 1075094
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/tests/yaml/runner.py
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ class ParserGroup:
class YamlTestParserGroup(click.Group):
def format_options(self, ctx, formatter):
"""Writes all the options into the formatter if they exist."""
if ctx.custom_options:
if getattr(ctx, 'custom_options', None):
params_copy = self.params
non_custom_params = list(filter(lambda x: x.name not in ctx.custom_options, self.params))
custom_params = list(filter(lambda x: x.name in ctx.custom_options, self.params))
Expand Down

0 comments on commit 1075094

Please sign in to comment.