teemtee / tmt

Test Management Tool
MIT License
77 stars 117 forks source link

'where' not listed as possible option/config in --help (prepare/finish #2960

Open lukaszachy opened 1 month ago

lukaszachy commented 1 month ago

Generated docs shows it - https://tmt.readthedocs.io/en/stable/spec/plans.html#spec-plans-finish-where but tmt run finish --help does not.

$ tmt --version
tmt version: 1.32.1

$ tmt run prepare --help |& grep where
$ tmt run prepare -h shell --help |& grep where
$ tmt run finish --help |& grep where
happz commented 1 month ago

How about summary and order, https://tmt.readthedocs.io/en/stable/plugins/finish.html#common-keys. They should be similar in how and where they are defined.

happz commented 1 month ago

order is accepted, summary isn't. order is listed in tmt.steps.PHASE_OPTIONS. We have StepData - contains order - and WhereableStepData which contains where. It should be possible to add --where to steps that support it, and propagate it through _apply_cli_invocations(). summary is probably useless.