-
Notifications
You must be signed in to change notification settings - Fork 123
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
A plan installs deps from all the tests #1067
Comments
Looking at the plan I see the local test
This is because it's inherited from execute:
how: tmt
discover:
how: fmf The solution is to use summary:
Execute rpmlint on the spec file
discover:
tests:
- name: rpmlint
test: rpmlint packit.spec
prepare:
how: install
package: rpmlint See also the discover --how shell docs for some more info. |
Hah, Petr beat me to it, was just about to respond, never mind :) Also as an alternative you can keep your plan the way it is and just add discover:
how: shell |
Thank you, gentlemen! Trying it now here: packit/packit#1496 I'm wondering what would help me to understand the cause so I wouldn't need to create this issue. I guess that I was confused that the package list is not displayed here and it is in the TF runs above. $ tmt plan show -v
...
/plans/rpmlint
summary Execute rpmlint on the spec file
discover
how fmf
provision
how virtual
image fedora
user root
memory 2048
disk 10
connection session
prepare
name packages
how install
package rpmlint
exclude
missing fail
execute
how tmt
script rpmlint packit.spec
report
how display
finish
how shell
script
enabled true
sources /home/tt/g/packit/packit/plans/main.fmf
/home/tt/g/packit/packit/plans/rpmlint.fmf If you feel like this is properly documented and there is nothing to do in code, please close and I'll try to read the docs better next time (meaning, I will ask @FrNecas :) |
I don't think we can do much here, as |
what about providing a hint to the output with
|
And also possibly a hint to non-verbose discover output? |
hint++ that would be very helpful since I had no idea |
Hmmm, I'm not completely convinced that it would be good to pollute the default output with many hints. At least until we have a config implemented where user could specify level of hinting or disable the feature completely. Showing hints in verbose mode sounds better. What definitely makes sense to me is to cover the |
http://artifacts.dev.testing-farm.io/c089aa49-7fb6-4c72-acca-c19c3af59f00/
http://artifacts.dev.testing-farm.io/49368cf2-f543-4163-a3ca-d72b8928376a/
the rpmlint plan is failing above, this is the plan
we have a few tests with
require
: it seems the plan inherits all of those requirements which is incorrect for usif I want to run rpmlint on a spec in our upstream repo, what is the best way to do it? plan or a test?
The text was updated successfully, but these errors were encountered: