Commit 4f2593f4 authored by Rohit Gupta's avatar Rohit Gupta

Gitlab CI: compile only for first run

parent 2c3fd3bc
...@@ -894,27 +894,28 @@ def handle_testcaseclass_softmodem (testcase, oldprogramList, logdirOAI5GRepo , ...@@ -894,27 +894,28 @@ def handle_testcaseclass_softmodem (testcase, oldprogramList, logdirOAI5GRepo ,
task_EPC = task_EPC + ' ) > ' + logfile_task_EPC_out + ' 2>&1 ' task_EPC = task_EPC + ' ) > ' + logfile_task_EPC_out + ' 2>&1 '
write_file(logfile_task_EPC, task_EPC, mode="w") write_file(logfile_task_EPC, task_EPC, mode="w")
#first we compile all the programs #first we compile all the programs but only for run_0
thread_EPC = oaiThread(1, "EPC_thread", EPCMachine, user, password , task_EPC_compile, False, timeout_thread) if run == 0:
thread_eNB = oaiThread(2, "eNB_thread", eNBMachine, user, password , task_eNB_compile, False, timeout_thread) thread_EPC = oaiThread(1, "EPC_thread", EPCMachine, user, password , task_EPC_compile, False, timeout_thread)
thread_UE = oaiThread(3, "UE_thread", UEMachine, user, password , task_UE_compile, False, timeout_thread) thread_eNB = oaiThread(2, "eNB_thread", eNBMachine, user, password , task_eNB_compile, False, timeout_thread)
if RRHMachine != '': thread_UE = oaiThread(3, "UE_thread", UEMachine, user, password , task_UE_compile, False, timeout_thread)
thread_RRH = oaiThread(4, "RRH_thread", RRHMachine, user, password , task_RRH_compile, False, timeout_thread) if RRHMachine != '':
threads=[] thread_RRH = oaiThread(4, "RRH_thread", RRHMachine, user, password , task_RRH_compile, False, timeout_thread)
threads.append(thread_eNB) threads=[]
threads.append(thread_UE) threads.append(thread_eNB)
threads.append(thread_EPC) threads.append(thread_UE)
if RRHMachine != '': threads.append(thread_EPC)
threads.append(thread_RRH) if RRHMachine != '':
# Start new Threads threads.append(thread_RRH)
thread_eNB.start() # Start new Threads
thread_UE.start() thread_eNB.start()
thread_EPC.start() thread_UE.start()
if RRHMachine != '': thread_EPC.start()
thread_RRH.start() if RRHMachine != '':
#Wait for all the compile threads to complete thread_RRH.start()
for t in threads: #Wait for all the compile threads to complete
t.join() for t in threads:
t.join()
#Now we execute all the threads #Now we execute all the threads
thread_EPC = oaiThread(1, "EPC_thread", EPCMachine, user, password , task_EPC, False, timeout_thread) thread_EPC = oaiThread(1, "EPC_thread", EPCMachine, user, password , task_EPC, False, timeout_thread)
......
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