CI: Remove unused code
This commit is contained in:
@@ -43,10 +43,6 @@ import constants as CONST
|
|||||||
|
|
||||||
def ArgsParse(argvs,CiTestObj,RAN,HTML,CONTAINERS,HELP,SCA,CLUSTER):
|
def ArgsParse(argvs,CiTestObj,RAN,HTML,CONTAINERS,HELP,SCA,CLUSTER):
|
||||||
|
|
||||||
|
|
||||||
py_param_file_present = False
|
|
||||||
py_params={}
|
|
||||||
|
|
||||||
force_local = False
|
force_local = False
|
||||||
while len(argvs) > 1:
|
while len(argvs) > 1:
|
||||||
myArgv = argvs.pop(1) # 0th is this file's name
|
myArgv = argvs.pop(1) # 0th is this file's name
|
||||||
@@ -172,4 +168,4 @@ def ArgsParse(argvs,CiTestObj,RAN,HTML,CONTAINERS,HELP,SCA,CLUSTER):
|
|||||||
HELP.GenericHelp(CONST.Version)
|
HELP.GenericHelp(CONST.Version)
|
||||||
sys.exit('Invalid Parameter: ' + myArgv)
|
sys.exit('Invalid Parameter: ' + myArgv)
|
||||||
|
|
||||||
return py_param_file_present, py_params, mode, force_local
|
return mode, force_local
|
||||||
|
|||||||
+1
-18
@@ -85,14 +85,6 @@ def CheckClassValidity(xml_class_list,action,id):
|
|||||||
resp=True
|
resp=True
|
||||||
return resp
|
return resp
|
||||||
|
|
||||||
#assigning parameters to object instance attributes (even if the attributes do not exist !!)
|
|
||||||
def AssignParams(params_dict):
|
|
||||||
|
|
||||||
for key,value in params_dict.items():
|
|
||||||
setattr(CiTestObj, key, value)
|
|
||||||
setattr(RAN, key, value)
|
|
||||||
setattr(HTML, key, value)
|
|
||||||
|
|
||||||
def ExecuteActionWithParam(action, ctx):
|
def ExecuteActionWithParam(action, ctx):
|
||||||
global RAN
|
global RAN
|
||||||
global HTML
|
global HTML
|
||||||
@@ -399,16 +391,7 @@ CLUSTER = cls_cluster.Cluster()
|
|||||||
import args_parse
|
import args_parse
|
||||||
# Force local execution, move all execution targets to localhost
|
# Force local execution, move all execution targets to localhost
|
||||||
force_local = False
|
force_local = False
|
||||||
py_param_file_present, py_params, mode, force_local = args_parse.ArgsParse(sys.argv,CiTestObj,RAN,HTML,CONTAINERS,HELP,SCA,CLUSTER)
|
mode, force_local = args_parse.ArgsParse(sys.argv,CiTestObj,RAN,HTML,CONTAINERS,HELP,SCA,CLUSTER)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
#-----------------------------------------------------------
|
|
||||||
# TEMPORARY params management (UNUSED)
|
|
||||||
#-----------------------------------------------------------
|
|
||||||
#temporary solution for testing:
|
|
||||||
if py_param_file_present == True:
|
|
||||||
AssignParams(py_params)
|
|
||||||
|
|
||||||
#-----------------------------------------------------------
|
#-----------------------------------------------------------
|
||||||
# mode amd XML class (action) analysis
|
# mode amd XML class (action) analysis
|
||||||
|
|||||||
Reference in New Issue
Block a user