spack ci: use return codes to signal exit status (#24090)

This commit is contained in:
Scott Wittenburg 2021-06-23 18:09:19 -06:00 committed by GitHub
parent 3d631377c0
commit db403391c8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -580,16 +580,16 @@ def ci_rebuild(args):
print(reproduce_msg)
# Tie job success/failure to the success/failure of building the spec
sys.exit(install_exit_code)
return install_exit_code
def ci_reproduce(args):
job_url = args.job_url
work_dir = args.working_dir
spack_ci.reproduce_ci_job(job_url, work_dir)
return spack_ci.reproduce_ci_job(job_url, work_dir)
def ci(parser, args):
if args.func:
args.func(args)
return args.func(args)