Repository navigation
Conversation
|
Added to the milestone as I intend to use this with 'adjust-tests' feature of tmt and it is very easy to hit KeyError when some test doesn't have both require/recommend set... |
|
Can you comment with an example fmf file for this? |
|
For example conflicting mariadb vs mysql server but test can do both... Recommend package can be skipped, but if for some reason you change the order -> failure during prepare. So if I was to use this from other plan (and I don't have possiblity to "fix" test metadata (eg. not my repo): And now I can be sure that mysql isn't require by any test.. |
6f13846 to
2164073
Compare
|
@happz has good points that this might hide typo in the key names, making it harder to spot (e.g. why there still is 'foo' in require why I clearly have 'requre-:[foo]' in data...) |
|
So, a bit cleaner (perhaps) approach discussed on the chat would be to use |
Operations '~', '-~' and '-' should do nothing if the key is not present. Otherwise they are difficult to use with shared adjust snippets as keys might not always be present.
psss
left a comment
There was a problem hiding this comment.
Looks good & makes sense. Thanks!
Operations
~,-~and-should do nothing if the key is not present. Otherwise they are difficult to use with shared adjust snippets as keys might not always be present.