Closed thrix closed 1 year ago
@happz not sure when this happened
This seems to be as old as 1.22 :) It does not appear before, it starts appearing in 1.22.0, but it might be related to the plan alone - if I limit plans with plan -n feature
, the last plan is not indented.
I think it's not about being last, but what the plan contains:
$ cat plans/remote/polarion.fmf
/:
inherit: false
plan:
import:
url: https://github.com/teemtee/tests
name: /plans/polarion
The /:
plus top-level plan
is probably messing with indentation.
interesting :)
The problem is probably with imported plans.
https://github.com/teemtee/tmt/blob/acc601ba15da0fe7f58314017f16f4626122ab67/tmt/base.py#L2318
Indentation is shifted by logger.descend()
method.
I created a PR that should fix this.
In the current
main
the last plan is indented wrongly if I run this command: