Skip to content

Commit

Permalink
Use action=append instead of nargs=+ for --test argument.
Browse files Browse the repository at this point in the history
  • Loading branch information
Johannes Ernst committed Oct 19, 2024
1 parent c8013cd commit 7f8ab1b
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/feditest/cli/commands/create_session_template.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ def add_sub_parser(parent_parser: _SubParsersAction, cmd_name: str) -> None:
# session template options
parser.add_argument('--name', default=None, required=False, help='Name of the created test session template')
parser.add_argument('--filter-regex', default=None, help='Only include tests whose name matches this regular expression')
parser.add_argument('--test', nargs='+', help='Include this/these named tests(s)')
parser.add_argument('--test', action='append', help='Include this/these named tests(s)')

# output options
parser.add_argument('--out', '-o', default=None, required=False, help='Name of the file for the created test session template')
Expand Down
2 changes: 1 addition & 1 deletion src/feditest/cli/commands/create_testplan.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ def add_sub_parser(parent_parser: _SubParsersAction, cmd_name: str) -> None:
parser.add_argument('--node', action='append',
help="Use role=file to specify that the node definition in 'file' is supposed to be used for constellation role 'role'")
parser.add_argument('--filter-regex', default=None, help='Only include tests whose name matches this regular expression')
parser.add_argument('--test', nargs='+', help='Run this/these named tests(s)')
parser.add_argument('--test', action='append', help='Run this/these named tests(s)')

# output options
parser.add_argument('--out', '-o', default=None, required=False, help='Name of the file for the generated test plan')
Expand Down
2 changes: 1 addition & 1 deletion src/feditest/cli/commands/run.py
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ def add_sub_parser(parent_parser: _SubParsersAction, cmd_name: str) -> None:
parser.add_argument('--node', action='append',
help="Use role=file to specify that the node definition in 'file' is supposed to be used for constellation role 'role'")
parser.add_argument('--filter-regex', default=None, help='Only include tests whose name matches this regular expression')
parser.add_argument('--test', nargs='+', help='Run this/these named tests(s)')
parser.add_argument('--test', action='append', help='Run this/these named tests(s)')

# output options
parser.add_argument('--tap', nargs="?", const=True, default=False,
Expand Down

0 comments on commit 7f8ab1b

Please sign in to comment.