diff options
author | Harmen Stoppels <harmenstoppels@gmail.com> | 2023-02-22 11:08:32 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-02-22 11:08:32 +0100 |
commit | 6e477d547d82ef1407c55aec1ec8044303f99de4 (patch) | |
tree | d34bcb752b5be8684c4d15aa0bbfd2640677999b /lib | |
parent | 9d6630e24530ce981378378f9a138e3dc52ad96f (diff) | |
download | spack-6e477d547d82ef1407c55aec1ec8044303f99de4.tar.gz spack-6e477d547d82ef1407c55aec1ec8044303f99de4.tar.bz2 spack-6e477d547d82ef1407c55aec1ec8044303f99de4.tar.xz spack-6e477d547d82ef1407c55aec1ec8044303f99de4.zip |
add cdash arg to source build only (#35565)
Diffstat (limited to 'lib')
-rw-r--r-- | lib/spack/spack/cmd/ci.py | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/lib/spack/spack/cmd/ci.py b/lib/spack/spack/cmd/ci.py index ac40cac697..8e14d7b7ed 100644 --- a/lib/spack/spack/cmd/ci.py +++ b/lib/spack/spack/cmd/ci.py @@ -530,18 +530,21 @@ def ci_rebuild(args): if not verify_binaries: install_args.append("--no-check-signature") - if cdash_handler: - # Add additional arguments to `spack install` for CDash reporting. - install_args.extend(cdash_handler.args()) - slash_hash = "/{}".format(job_spec.dag_hash()) + + # Arguments when installing dependencies from cache deps_install_args = install_args + + # Arguments when installing the root from sources root_install_args = install_args + [ "--keep-stage", "--only=package", "--use-buildcache=package:never,dependencies:only", - slash_hash, ] + if cdash_handler: + # Add additional arguments to `spack install` for CDash reporting. + root_install_args.extend(cdash_handler.args()) + root_install_args.append(slash_hash) # ["x", "y"] -> "'x' 'y'" args_to_string = lambda args: " ".join("'{}'".format(arg) for arg in args) |