Change run() to allow running external functions.

This commit is contained in:
Bob Lantz
2010-03-24 16:58:44 -07:00
parent 6e4e79afc3
commit 67516aa44f
+2 -2
View File
@@ -375,11 +375,11 @@ class Mininet( object ):
controller.stop()
info( '*** Test complete\n' )
def run( self, test, **params ):
def run( self, test, *args, **kwargs ):
"Perform a complete start/test/stop cycle."
self.start()
info( '*** Running test\n' )
result = getattr( self, test )( **params )
result = test( *args, **kwargs )
self.stop()
return result