Commit 6bab0de2 authored by Rohit Gupta's avatar Rohit Gupta

override number of runs for lte-softmodem test case

parent 7cc2a5cd
...@@ -1018,11 +1018,11 @@ MachineList = '' ...@@ -1018,11 +1018,11 @@ MachineList = ''
MachineListGeneric='' MachineListGeneric=''
flag_remove_logdir=False flag_remove_logdir=False
flag_start_testcase=False flag_start_testcase=False
nruns_lte_softmodem=''
print "Number of arguments argc = " + str(len(sys.argv)) print "Number of arguments argc = " + str(len(sys.argv))
for index in range(1,len(sys.argv) ): #for index in range(1,len(sys.argv) ):
print "argv_" + str(index) + " : " + sys.argv[index] # print "argv_" + str(index) + " : " + sys.argv[index]
i=1 i=1
while i < len (sys.argv): while i < len (sys.argv):
...@@ -1060,6 +1060,9 @@ while i < len (sys.argv): ...@@ -1060,6 +1060,9 @@ while i < len (sys.argv):
elif arg == '-n': elif arg == '-n':
NFSResultsShare = sys.argv[i+1] NFSResultsShare = sys.argv[i+1]
i = i +1 i = i +1
elif arg == '--nrun_lte_softmodem':
nruns_lte_softmodem = sys.argv[i+1]
i = i +1
elif arg == '-MachineList': elif arg == '-MachineList':
MachineList = sys.argv[i+1] MachineList = sys.argv[i+1]
MachineList = MachineList.replace("\"","") MachineList = MachineList.replace("\"","")
...@@ -1080,6 +1083,7 @@ while i < len (sys.argv): ...@@ -1080,6 +1083,7 @@ while i < len (sys.argv):
print "-u: use the user name passed as argument" print "-u: use the user name passed as argument"
print "-p: use the password passed as an argument" print "-p: use the password passed as an argument"
print "-n: Set the NFS share passed as an argument" print "-n: Set the NFS share passed as an argument"
print "--nrun_lte_softmodem: Set the number of runs for lte-softmodem test case class"
print "-MachineList : overrides the MachineList parameter in test_case_list.xml" print "-MachineList : overrides the MachineList parameter in test_case_list.xml"
print "-MachineListGeneric : overrides the MachineListGeneric parameter in test_case_list.xml" print "-MachineListGeneric : overrides the MachineListGeneric parameter in test_case_list.xml"
sys.exit() sys.exit()
...@@ -1172,7 +1176,8 @@ if MachineListGeneric == '': ...@@ -1172,7 +1176,8 @@ if MachineListGeneric == '':
MachineListGeneric = xmlRoot.findtext('MachineListGeneric',default='') MachineListGeneric = xmlRoot.findtext('MachineListGeneric',default='')
TestCaseExclusionList = xmlRoot.findtext('TestCaseExclusionList',default='') TestCaseExclusionList = xmlRoot.findtext('TestCaseExclusionList',default='')
ExmimoRfStop = xmlRoot.findtext('ExmimoRfStop',default='') ExmimoRfStop = xmlRoot.findtext('ExmimoRfStop',default='')
nruns_lte_softmodem = xmlRoot.findtext('nruns_lte-softmodem',default='') if nruns_lte_softmodem == '':
nruns_lte_softmodem = xmlRoot.findtext('nruns_lte-softmodem',default='')
print "MachineList = " + MachineList print "MachineList = " + MachineList
print "GitOpenair-cnRepo = " + GitOpenaircnRepo print "GitOpenair-cnRepo = " + GitOpenaircnRepo
......
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