Skip to content

Commit

Permalink
when using ck run program --skip_exec, do not run post-processing oth…
Browse files Browse the repository at this point in the history
…erwise it will most likely fail
  • Loading branch information
Grigori Fursin authored and Grigori Fursin committed Dec 10, 2019
1 parent 712052e commit 297a3fe
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions module/program/module.py
Original file line number Diff line number Diff line change
Expand Up @@ -2943,7 +2943,7 @@ def process_in_dir(i):
ck.out(' '+q1)

# Check if post-processing script from CMD
if pp_uoa!='':
if pp_uoa!='' and skip_exec!='yes':
if o=='con':
ck.out('')
ck.out(' (post processing from script '+pp_uoa+' / '+pp_name+' ... )"')
Expand All @@ -2962,7 +2962,7 @@ def process_in_dir(i):
srx=0 # script exit code

# Newer variant (more consistent with pre_process_via_ck
if type(lppcvc)==dict:
if type(lppcvc)==dict and skip_exec!='yes':
pvck=lppcvc

pvckp=src_path_local
Expand Down Expand Up @@ -3064,7 +3064,7 @@ def process_in_dir(i):
return {'return':0, 'tmp_dir':rcdir, 'misc':misc, 'characteristics':ccc, 'deps':deps}

# Older variant
if len(lppc)>0:
if len(lppc)>0 and skip_exec!='yes':
for ppc in lppc:
while ppc.find('$<<')>=0:
j1=ppc.find('$<<')
Expand Down Expand Up @@ -3201,7 +3201,7 @@ def process_in_dir(i):
return {'return':0, 'tmp_dir':rcdir, 'misc':misc, 'characteristics':ccc, 'deps':deps}

# Check if fine-grain time
if fgtf!='':
if fgtf!='' and skip_exec!='yes':
if o=='con':
ck.out('')
ck.out(' (reading fine grain timers from '+fgtf+' ...)')
Expand Down

0 comments on commit 297a3fe

Please sign in to comment.