spack ci: use return codes to signal exit status (#24090)
This commit is contained in:
parent
3d631377c0
commit
db403391c8
@ -580,16 +580,16 @@ def ci_rebuild(args):
|
|||||||
print(reproduce_msg)
|
print(reproduce_msg)
|
||||||
|
|
||||||
# Tie job success/failure to the success/failure of building the spec
|
# 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):
|
def ci_reproduce(args):
|
||||||
job_url = args.job_url
|
job_url = args.job_url
|
||||||
work_dir = args.working_dir
|
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):
|
def ci(parser, args):
|
||||||
if args.func:
|
if args.func:
|
||||||
args.func(args)
|
return args.func(args)
|
||||||
|
Loading…
Reference in New Issue
Block a user