Module actions provide an easy way for Module Wrapper plugin authors to manipulate modules in a consistent way regardless of the module system being used.
Handle complex loading issues, such as swapping out modules that aren't in place.
Provide a verification command via the .verify() method.
Update the test status and exit the test properly on error.
Module actions can't be passed options. This will eventually be enabled via #76.
Available Actions
Pavilion provides a few basic ModuleActions. Additional ModuleActions can be created via inheritance if needed.
ModuleLoad
Simply performs a module load
Verification makes sure the specified module is loaded.
ModuleSwap
Performs a module swap if the the 'swap_out' module is loaded, does a load otherwise.
Can optionally perform a module refresh as well.
Verification checks that the swapped in module is loaded.
ModuleRemove
Performs a module remove.
Verification makes sure the removed module is no longer present.
Customizing Module Actions
Module actions can be added or customized through inheritance from pavilion.module_actions.ModuleAction or its children.
Module Actions
Module actions provide an easy way for Module Wrapper plugin authors to manipulate modules in a consistent way regardless of the module system being used.
.verify()
method.Available Actions
Pavilion provides a few basic ModuleActions. Additional ModuleActions can be created via inheritance if needed.
ModuleLoad
module load
ModuleSwap
module swap
if the the 'swap_out' module is loaded, does a load otherwise.module refresh
as well.ModuleRemove
module remove
.Customizing Module Actions
Module actions can be added or customized through inheritance from
pavilion.module_actions.ModuleAction
or its children.