Skip to content
Snippets Groups Projects
Commit 67516aa4 authored by Bob Lantz's avatar Bob Lantz
Browse files

Change run() to allow running external functions.

parent 6e4e79af
No related branches found
No related tags found
No related merge requests found
...@@ -375,11 +375,11 @@ def stop( self ): ...@@ -375,11 +375,11 @@ def stop( self ):
controller.stop() controller.stop()
info( '*** Test complete\n' ) info( '*** Test complete\n' )
def run( self, test, **params ): def run( self, test, *args, **kwargs ):
"Perform a complete start/test/stop cycle." "Perform a complete start/test/stop cycle."
self.start() self.start()
info( '*** Running test\n' ) info( '*** Running test\n' )
result = getattr( self, test )( **params ) result = test( *args, **kwargs )
self.stop() self.stop()
return result return result
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment