Skip to content

prefer default value for extra options in easyblock module-only tests#2302

Merged
boegel merged 1 commit intoeasybuilders:developfrom
lexming:relion-tests
Jan 6, 2021
Merged

prefer default value for extra options in easyblock module-only tests#2302
boegel merged 1 commit intoeasybuilders:developfrom
lexming:relion-tests

Conversation

@lexming
Copy link
Copy Markdown
Contributor

@lexming lexming commented Jan 6, 2021

Follow-up to #2280 for --module-only tests.

Use the default value for mandatory extra options which have one and fallback to foo only if the default is not set (None, False or empty).

This allows having extra options with a limited number of valid options and check for those. Raising an error if the provided option is not one of the allowed values.

For instance, as it is done for queue_cmd in the relion easyblock (PR #2274 ) at

if self.cfg['queue_cmd'] not in known_queque_cmds:

Copy link
Copy Markdown
Member

@boegel boegel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@boegel boegel added this to the next release (4.3.3?) milestone Jan 6, 2021
@boegel boegel merged commit 929d3c9 into easybuilders:develop Jan 6, 2021
@lexming lexming deleted the relion-tests branch January 6, 2021 13:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants