-
Notifications
You must be signed in to change notification settings - Fork 117
Closed
Description
At the moment, reframe seems to require a default environment. If I do something like this:
{
'name':'openfoam',
'target_systems': ['mysys:ib-gcc7-openmpi4-ucx'],
'modules': ['openfoam-org/7-2ceqb4l']
},
{
'name':'openfoam',
'target_systems': ['mysys:ib-gcc9-openmpi4-ucx'],
'modules': ['openfoam-org/7-4zgjbg2']
},
Then I get a message like "environment 'openfoam' not defined for system 'mysys'" (paraphrased, lost the original terminal).
I have to add an empty default environment of the same name for it to work:
{
'name':'openfoam'
},
Which is fine, because I can use the 'environs' values in the partition to restrict tests to valid partition+environ combinations. Except that it is an error trap - for example if I misspelt the 'target_systems' above, then reframe thinks there is a valid combination because of the default one, then I get a cryptic error during module loads.
To me that case with no default seems quite reasonable/normal, but maybe it's not.