Commit b9474064 authored by Tomas Hlavacek's avatar Tomas Hlavacek

Tests: Fix runCommand -> runSyncCommand

Tests do not reflect changes in ulgmodel/routers that implemented
sync/async commands.
parent 553cd2ea
...@@ -38,8 +38,8 @@ config = ulgmodel.import_config() ...@@ -38,8 +38,8 @@ config = ulgmodel.import_config()
def testRouterCommand(router=0,command=0,params=[]): def testRouterCommand(router=0,command=0,params=[]):
r = config.routers[router] r = config.routers[router]
try: try:
if(not r.runCommand(r.listCommands()[command],params,ulg.DecoratorHelper())): if(not r.runSyncCommand(r.listCommands()[command],params)):
print "WARN: Outpit of test running command "+str(command)+" on router "+str(router)+" with parameters:"+str(params)+" is empty." print "WARN: Output of test running command "+str(command)+" on router "+str(router)+" with parameters:"+str(params)+" is empty."
return False return False
except Exception as e: except Exception as e:
...@@ -143,7 +143,7 @@ def testULGLock(): ...@@ -143,7 +143,7 @@ def testULGLock():
def testULGRunParameter(router=0,command=4,params=['91.210.16.1']): def testULGRunParameter(router=0,command=4,params=['91.210.16.1']):
r = config.routers[router] r = config.routers[router]
try: try:
if(not r.runCommand(r.listCommands()[command],params,ulg.DecoratorHelper())): if(not r.runSyncCommand(r.listCommands()[command],params)):
print "WARN: Output of test running command "+str(command)+" on router "+str(router)+" with parameters:"+str(params)+" is empty." print "WARN: Output of test running command "+str(command)+" on router "+str(router)+" with parameters:"+str(params)+" is empty."
return False return False
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment