Closed vkarak closed 6 months ago
Hello @vkarak, Thank you for updating!
Cheers! There are no PEP8 issues in this Pull Request!Do see the ReFrame Coding Style Guide
All modified and coverable lines are covered by tests :white_check_mark:
Comparison is base (
791b57c
) 86.64% compared to head (ed2526d
) 86.66%.:exclamation: Current head ed2526d differs from pull request most recent head 479a013. Consider uploading reports for the commit 479a013 to get more accurate results
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
Currently, multiple inheritance of test or mixin variables is prohibited leads to a test load error. This is restrictive, especially in case of mixins, which may be inherited multiple times in a complex setup. For example, the following would cause an error when reframe is processing the
Z
class:This PR introduces a new variable argument,
merge_func
, that defines how the default values of the parent variables can be combined in case of multiple inheritance. Sincemerge_func=None
by default, the default behaviour of variables does not change. It just that we now offer the extra flexibility to users to define the variable behaviour in case of multiple inheritance.In the example above, if we define
x
as follows:its value in
Z
class will be[10, 4]
.Todos