Dne 14.5.2018 v 17:05 Petr Šplíchal napsal(a): > Thanks for the pointers, Lukáš. > > I tried the command you suggested with 52 with the same result: >> avocado multiplex -m mux.yaml --tree > avocado multiplex: error: unrecognized arguments: -m mux.yaml > > BTW, 52.1 docs suggest using "variants", but that does not work either: >> avocado variants --tree -m mux.yaml > avocado variants: error: unrecognized arguments: -m mux.yaml > >> avocado --version > Avocado 52.0 > >> rpm -q python2-avocado > python2-avocado-52.0-1.el7.noarch >
Hello Petr, the "unrecognized arguments" is the best hint here and it means you most probably don't have the "yaml_to_mux" installed. You can list installed plugins by "avocado plugins" or, in your case, by running "rpm -qa | grep avocado". As suggested in http://avocado-framework.readthedocs.io/en/52.1/GetStartedGuide.html you need to install "python-avocado-plugins-varianter-yaml-to-mux" plugin which implements the `-m` option. Note with more recent Avocado you get to chose from either "yaml_to_mux" or "pict" but in LTS you only have the "yaml_to_mux" varianter plugin available. Do you think we can improve a bit? We moved the optional_plugins documentation to special section to emphasize they are not core, maybe the "optional_plugins" section header can be a bit better. Or do you think something like "-m option is not supported, do you have all plugins installed (use 'avocado plugins' to list them)" would help? Regards, Lukáš > psss... > > On 11 May 2018 at 07:06, Lukáš Doktor <[email protected]> wrote: > >> Dne 10.5.2018 v 15:42 Petr Šplíchal napsal(a): >>> Hi! >>> >>> I was looking a bit at the multiplex feature of the Avocado >>> framework but unfortunately no examples provided in the >>> documentation worked for me: >>> >>> http://avocado-framework.readthedocs.io/en/stable/MultiplexConfig.html >>>> avocado multiplex --tree mux.yaml >>> avocado multiplex: error: unrecognized arguments: mux.yaml >>> >> >> Hello Petr, >> >> the link that you provided does not work for me, anyway the example you > sent is for 32lts version. For later versions the `-m|--mux-yaml` argument > is required to specify the yaml2mux-like file (and other formats are also > available like `--pict-parameter-file` or `--json-variants-load` and they > can be mix-and-matched). >> >> The `avocado multiplex -m mux.yaml --tree` should give you what you want > on 52lts but if you're using the latest greatest you should switch to > `avocado variants -m mux.yaml --summary 1`. >> >> Details in: >> >> master: > http://avocado-framework.readthedocs.io/en/latest/optional_plugins/varianter_yaml_to_mux.html >> 52lts: > http://avocado-framework.readthedocs.io/en/52.1/optional_plugins/varianter_yaml_to_mux.html >> >> Regards, >> Lukáš >> >>> > http://avocado-framework.readthedocs.io/en/latest/WritingTests.html#running-multiple-variants-of-tests >>>> avocado variants -m examples/tests/sleeptenmin.py.data/sleeptenmin.yaml >>> --summary 2 --variants 2 >>> avocado variants: error: unrecognized arguments: -m >>> examples/tests/sleeptenmin.py.data/sleeptenmin.yaml >>> >>>> avocado --version >>> Avocado 61.0 >>> >>> Any idea what might be wrong? Thanks. >>> >>> psss... >
signature.asc
Description: OpenPGP digital signature
