teemtee / tmt

Test Management Tool
MIT License
79 stars 117 forks source link

The prepare+ part in the child plan does not take effect when using adjust #3006

Open guoguojenna opened 1 month ago

guoguojenna commented 1 month ago

When using adjust in tmt test plan, for example,

this is the parent plan

adjust:
 - when: distro == rhel-10
   prepare:
    ……

This is a child plan,

prepare+:
 - how: install
   package: libiscsi-utils
   ……

When run tmt run -c distro=rhel-10…, the prepare+ part in the child plan does not take effect. Is it reasonable to append the prepare+ part in the child plan to the parent adjust prepare?

lukaszachy commented 1 month ago

What means child here? Imported plan?

guoguojenna commented 1 month ago

What means child here? Imported plan?

Sorry for the misunderstanding. My test structure is like this:

$ tree
.
├── iscsi
│   ├── libiscsi
│   │   └── main.fmf
├── main.fmf

The main.fmf under ./iscsi/libiscsi is the child and main.fmf under ./ is the parent here.