Now --quick-start is more robuts

- sys.exit() is skipped
- Passed dont_stop to the run stage (was only in config)
This commit is contained in:
Salvador E. Tropea 2022-05-06 13:03:38 -03:00
parent 156c98b3b2
commit 5f22d5a3a9
1 changed files with 8 additions and 1 deletions

View File

@ -378,6 +378,10 @@ def config_output(out, dry=False, dont_stop=False):
else:
config_error(msg)
ok = False
except SystemExit:
if not dont_stop:
raise
ok = False
return ok
@ -398,6 +402,9 @@ def run_output(out, dont_stop=False):
logger.error(msg)
else:
config_error(msg)
except SystemExit:
if not dont_stop:
raise
def generate_outputs(outputs, target, invert, skip_pre, cli_order, dont_stop=False):
@ -407,7 +414,7 @@ def generate_outputs(outputs, target, invert, skip_pre, cli_order, dont_stop=Fal
for out in RegOutput.get_prioritary_outputs():
if config_output(out, dont_stop=dont_stop):
logger.info('- '+str(out))
run_output(out)
run_output(out, dont_stop=dont_stop)
# Check if all must be skipped
n = len(target)
if n == 0 and invert: