diff options
author | Scott Wittenburg <scott.wittenburg@kitware.com> | 2021-06-23 18:09:19 -0600 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-06-23 17:09:19 -0700 |
commit | db403391c8e47e584fc2b0c43a2c55f386337cbd (patch) | |
tree | 06c9f72cdaa95df59efb4053e094860b454ef334 | |
parent | 3d631377c09cee2c640cf6ae3cc6a791ce93b5d6 (diff) | |
download | spack-db403391c8e47e584fc2b0c43a2c55f386337cbd.tar.gz spack-db403391c8e47e584fc2b0c43a2c55f386337cbd.tar.bz2 spack-db403391c8e47e584fc2b0c43a2c55f386337cbd.tar.xz spack-db403391c8e47e584fc2b0c43a2c55f386337cbd.zip |
spack ci: use return codes to signal exit status (#24090)
-rw-r--r-- | lib/spack/spack/cmd/ci.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/spack/spack/cmd/ci.py b/lib/spack/spack/cmd/ci.py index d63e5c7b18..1bc73ec452 100644 --- a/lib/spack/spack/cmd/ci.py +++ b/lib/spack/spack/cmd/ci.py @@ -580,16 +580,16 @@ If this project does not have public pipelines, you will need to first: 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) |