Skip to content
Snippets Groups Projects
Commit 14e32996 authored by s2870355's avatar s2870355
Browse files

fix print of sequential

parent 2339d9c0
No related branches found
No related tags found
No related merge requests found
......@@ -143,10 +143,10 @@ def run_ci(compile_info : list[job_data]) -> bool:
runnable_job = get_runnable_job(compile_info, jobs)
if runnable_job is not None:
print_info(compile_info, jobs, [runnable_job])
if '--sequential' in sys.argv:
(task, output) = run_cli_sequential(runnable_job)
else:
print_info(compile_info, jobs)
(task, output) = run_cli_parallel(runnable_job)
jobs.append((runnable_job, task, output))
change = True
......@@ -160,7 +160,7 @@ def run_ci(compile_info : list[job_data]) -> bool:
print("\t" + i.location)
return True
def print_info(compile_info, jobs):
def print_info(compile_info, jobs, additional=None):
os.system("cls||clear")
completed_count = 0
failed_count = 0
......@@ -179,7 +179,11 @@ def print_info(compile_info, jobs):
for job in jobs:
(job_info,task, output) = job
print("\t" + job_info.location)
if additional is None:
return
for job in additional:
print("\t" + job.location)
def get_stages(compile_info : list[job_data]) -> list[str]:
stages = []
for i in compile_info:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment