-
Notifications
You must be signed in to change notification settings - Fork 144
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
Override test metada from plan using adjust-tests
#2865
Conversation
Note that you need teemtee/fmf#230 to try this PR |
fmf released today, but it will take some time it reaches stable repos, thus aiming for next tmt version with this. |
Adding the 'must' label as I really need this to get rid of "virtual" test for 'mutually exclusive packages' as |
8c719b9
to
d95f2f9
Compare
Once corner case to solve: Test without explicit duration (so the default 5m is used), but 'adjust-test' specifies 'duration+: *2'. One would expect this leads to the 10m, but how to do that? Should duration_to_seconds be aware of the default value? I modified the 'duration_to_seconds' but it doesn't feel right |
d95f2f9
to
91d5900
Compare
To speed this up I'll ignore for now the CLI way to specify this parameters, no idea how could one add dictionary from CLI in a nice wau. |
testcloud switched to using sqlite3 internally, could be related. @frantisekz any chance it rings a bell? |
d984bce
to
9030398
Compare
Proposing a couple of docs improvements in 9030398. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks nice, thanks! Just a few comments.
adjust-tests
9030398
to
edcaa2f
Compare
Feedback addressed. Rebased to solve the confict in docs/releases ... Is there anything we can to about that file? it's a little pain :/ |
New option for discover -h fmf to adjust discovered tests Fix: #2430
edcaa2f
to
7bb31ac
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Now looks good, thanks!
New option for discover -h fmf to adjust discovered tests
I went with 'adjust-tests' keyword proposed in #2430 (reply in thread)
Pull Request Checklist
I'm not able to set the
versionadded
into the discover/fmf.py so I'll omit that.