Run codecheck script on CHOTestMonkey
Change-Id: I11047f1b4c6ecd8273695c230d3a4a99475a6db6
diff --git a/TestON/tests/CHOTestMonkey/dependencies/cli.py b/TestON/tests/CHOTestMonkey/dependencies/cli.py
index a3fb18e..2c6412c 100644
--- a/TestON/tests/CHOTestMonkey/dependencies/cli.py
+++ b/TestON/tests/CHOTestMonkey/dependencies/cli.py
@@ -7,6 +7,7 @@
commandMap = {}
paramNum = {}
+
def triggerEvent( debugMode, name, scheduleMethod, args ):
"""
This function inserts an event from CLI to CHOTestMonkey
@@ -28,14 +29,15 @@
response = conn.recv()
return response
+
def startCLI():
debugMode = False
- while 1:
+ while True:
try:
if debugMode:
- cmd = raw_input("CHOTestMonkey-debug>")
+ cmd = raw_input( "CHOTestMonkey-debug>" )
else:
- cmd = raw_input("CHOTestMonkey>")
+ cmd = raw_input( "CHOTestMonkey>" )
except EOFError:
print "exit"
return
@@ -64,13 +66,13 @@
if cmdList[ 0 ] in commandMap.keys():
num = paramNum[ cmdList[ 0 ] ]
name = commandMap[ cmdList[ 0 ] ]
- '''
+ """
if len( cmdList ) < num + 1:
print 'not enough arguments'
elif len( cmdList ) > num + 1:
print 'Too many arguments'
else:
- '''
+ """
result = triggerEvent( debugMode, name, 'RUN_BLOCK', cmdList[ 1: ] )
if result == 10:
pass
@@ -108,4 +110,3 @@
commandMap[ CLI ] = name
paramNum[ CLI ] = num
startCLI()
-