From a3ab1a90f52620654b95fa58ace213545bae4530 Mon Sep 17 00:00:00 2001 From: Rohit Gupta <rohit.gupta@eurecom.fr> Date: Tue, 29 Dec 2015 19:01:52 +0100 Subject: [PATCH] minor bugfixes due to runtime errors --- cmake_targets/autotests/run_exec_lte-softmodem_tests.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/cmake_targets/autotests/run_exec_lte-softmodem_tests.py b/cmake_targets/autotests/run_exec_lte-softmodem_tests.py index 132fefe0c29..67b6daed66b 100644 --- a/cmake_targets/autotests/run_exec_lte-softmodem_tests.py +++ b/cmake_targets/autotests/run_exec_lte-softmodem_tests.py @@ -1026,7 +1026,7 @@ oai_list = [] #start_time = time.time() # datetime.datetime.now() if user=='': user = getpass.getuser() -if password=='': +if pw=='': pw = getpass.getpass() print "host = " + host print "user = " + user @@ -1094,7 +1094,7 @@ if GitOAI5GHeadVersion == '': NFSTestsResultsDir = NFSResultsShare + '/'+ GitOAI5GRepoBranch + '/' + GitOAI5GHeadVersion + '/' -print "NFSResultsShareDir = " + NFSResultsShareDir +print "NFSTestsResultsDir = " + NFSTestsResultsDir MachineList = MachineList.split() MachineListGeneric = MachineListGeneric.split() @@ -1195,7 +1195,7 @@ print "cpu freq(MHz): " + str(cpu_freq) + "timeout(s): " + str(timeout) #print result #We now prepare the machines for testing -#index=0 +index=0 threads_init_setup=[] for oai in oai_list: try: @@ -1205,7 +1205,7 @@ for oai in oai_list: #print oai_list[oai].send_recv('who am i') #cleanUpPrograms(oai_list[oai] cmd = 'sudo -S -E rm -fr ' + logdir + ' ; mkdir -p ' + logdir - result = oai[index].send_recv(cmd) + result = oai.send_recv(cmd) setuplogfile = logdir + '/setup_log_' + MachineList[index] + '_.txt' setup_script = locallogdir + '/setup_script_' + MachineList[index] + '_.txt' @@ -1269,6 +1269,7 @@ for oai in oai_list: #print '\nCleaning Older running programs : ' + CleanUpOldProgs #cleanOldPrograms(oai_list[index], CleanUpOldProgs) + index = index + 1 except Exception, e: print 'There is error in one of the commands to setup the machine '+ MachineList[index] error='' -- GitLab