提交 c7991a88 编写于 作者: L Lukáš Doktor 提交者: Cleber Rosa

avocado.plugins.run: Disable only --multiplex when yaml not available

The `MULTIPLEX_CAPABLE` only influences the `yaml` parser. All other
functions are available without it so let's allow users to use them.
Signed-off-by: NLukáš Doktor <ldoktor@redhat.com>
上级 63f3dd30
......@@ -132,22 +132,23 @@ class Run(CLICmd):
loader.add_loader_options(parser)
mux = parser.add_argument_group('test parameters')
if multiplexer.MULTIPLEX_CAPABLE:
mux = parser.add_argument_group('test parameters')
mux.add_argument('-m', '--multiplex', nargs='*', dest='multiplex_files',
mux.add_argument('-m', '--multiplex', nargs='*',
dest='multiplex_files',
default=None, metavar='FILE',
help='Location of one or more Avocado multiplex (.yaml) '
'FILE(s) (order dependent)')
mux.add_argument('--filter-only', nargs='*', default=[],
help='Filter only path(s) from multiplexing')
mux.add_argument('--filter-out', nargs='*', default=[],
help='Filter out path(s) from multiplexing')
mux.add_argument('--mux-path', nargs='*', default=None,
help="List of paths used to determine path "
"priority when querying for parameters")
mux.add_argument('--mux-inject', default=[], nargs='*',
help="Inject [path:]key:node values into the "
"final multiplex tree.")
help='Location of one or more Avocado multiplex '
'(.yaml) FILE(s) (order dependent)')
mux.add_argument('--filter-only', nargs='*', default=[],
help='Filter only path(s) from multiplexing')
mux.add_argument('--filter-out', nargs='*', default=[],
help='Filter out path(s) from multiplexing')
mux.add_argument('--mux-path', nargs='*', default=None,
help="List of paths used to determine path "
"priority when querying for parameters")
mux.add_argument('--mux-inject', default=[], nargs='*',
help="Inject [path:]key:node values into the "
"final multiplex tree.")
def _activate(self, args):
# Extend default multiplex tree of --mux_inject values
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册