Override test attributes from plan #2430
Replies: 5 comments 23 replies
-
The overall idea sounds reasonable and useful. Furthermore, another related use cases are coming (e.g. enable the discover:
how: fmf
url: http://example.com/foo.git
adjust:
- duration+: 1h
- require+: ['foo']
when: distro == rhel-9 The |
Beta Was this translation helpful? Give feedback.
-
This feature would be highly valuable for a use case we're trying to implement: reusing LLVM tests in the compat packages. LLVM compat packages are named with a version suffix, similar to Implementing this without the feature proposed here would be a challenge. We'd need to either duplicate all the code using a branched scheme (one branch per compat package version) and replace all the ocurrences of The approach proposed here aligns perfectly with the use case, and would easily allow us to reuse them without actual changes in the tests:
|
Beta Was this translation helpful? Give feedback.
-
Since we go with 'adjust' syntax I'd like to ask for help with deciding the way how adjust can edit values. From the implementation PoV I'd say Motivation for the 'drop if empty' is that if test has Problem is how to write that in Lets' say that the discovered test has The 'sed-like' could be - Downside in escaping '/' (or allowing custom char to separate?)
The explicit way - too chatty, isn't it?
Edit: This merge operator will land in fmf package, but this discussion has already the audience and necessary background. |
Beta Was this translation helpful? Give feedback.
-
Work in progress - #1843 (comment) |
Beta Was this translation helpful? Give feedback.
-
Pull request implementing the feature has been merged: Closing. |
Beta Was this translation helpful? Give feedback.
-
Use case is #1843 but while at it we can extend it for require/recommend as well - so, why not to make it generic enough?
Or isn't it worth the trouble? (I see the use case for renamed packages (e.g. dual package or collections)
How about this syntax (PLAN)?
I'm not good at UX but the my goal will be to allow :
Beta Was this translation helpful? Give feedback.
All reactions