File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -360,13 +360,13 @@ def get_build_progress(build_id, build_status):
360
360
log_file_path = os .path .join (outdir_parent ,build_id ,'build.log' )
361
361
app .logger .info ('Opening ' + log_file_path )
362
362
build_log = open (log_file_path , encoding = 'utf-8' ).read ()
363
- compiled_regex = re .compile (r'(\[(\d+\/\ d+)\])' )
363
+ compiled_regex = re .compile (r'(\[\D* (\d+)\D*\/\D*(\ d+)\D* \])' )
364
364
all_matches = compiled_regex .findall (build_log )
365
365
366
366
if (len (all_matches ) < 1 ):
367
367
return 0
368
368
369
- completed_steps , total_steps = all_matches [- 1 ][1 ]. split ( '/' , 1 )
369
+ completed_steps , total_steps = all_matches [- 1 ][1 :]
370
370
if (int (total_steps ) < 20 ):
371
371
# these steps are just little compilation and linking that happen at initialisation
372
372
# these do not contribute significant percentage to overall build progress
You can’t perform that action at this time.
0 commit comments