Add a new TestON feature
- We can modify params use command line
- Usage: run [TESTNAME] --params [PARAMS]/[VARIABLE]=[VALUE]
Change-Id: I99684c93920db407dba15a730faa20738f2d720e
diff --git a/TestON/bin/cli.py b/TestON/bin/cli.py
index a91052c..f29a8ec 100755
--- a/TestON/bin/cli.py
+++ b/TestON/bin/cli.py
@@ -267,6 +267,10 @@
index = index+1
options[option] = args[index]
options = self.testcasesInRange(index,option,args,options)
+ elif re.match("--params", option, flags=0):
+ # check if there is a params
+ index = index + 1
+ options['params'].append(args[index])
else :
options['testname'] = option
except IndexError as e:
@@ -284,6 +288,8 @@
options['testdir'] = None
options['testcases'] = None
options['onoscell'] = None
+ # init params as a empty list
+ options['params'] = []
return options
def testcasesInRange(self,index,option,args,options):