summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorG-Ragghianti <33492707+G-Ragghianti@users.noreply.github.com>2022-02-14 05:19:45 -0500
committerGitHub <noreply@github.com>2022-02-14 11:19:45 +0100
commitaa6e725633ea7cb74fad9710ee4ca8e0a3f01593 (patch)
treec88d757e2a130ee6ab259873ea384ba69da2e7d5
parent96492467644776b47cc13add3b6114b9274bf327 (diff)
downloadspack-aa6e725633ea7cb74fad9710ee4ca8e0a3f01593.tar.gz
spack-aa6e725633ea7cb74fad9710ee4ca8e0a3f01593.tar.bz2
spack-aa6e725633ea7cb74fad9710ee4ca8e0a3f01593.tar.xz
spack-aa6e725633ea7cb74fad9710ee4ca8e0a3f01593.zip
magma: move the execution of stand-alone tests to preferred directory (#28895)
-rw-r--r--var/spack/repos/builtin/packages/magma/package.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/var/spack/repos/builtin/packages/magma/package.py b/var/spack/repos/builtin/packages/magma/package.py
index fb9d1b4aa3..3c006e5a27 100644
--- a/var/spack/repos/builtin/packages/magma/package.py
+++ b/var/spack/repos/builtin/packages/magma/package.py
@@ -164,7 +164,7 @@ class Magma(CMakePackage, CudaPackage, ROCmPackage):
self.cache_extra_test_sources([self.test_src_dir])
def test(self):
- test_dir = join_path(self.install_test_root, self.test_src_dir)
+ test_dir = join_path(self.test_suite.current_test_cache_dir, self.test_src_dir)
with working_dir(test_dir, create=False):
pkg_config_path = '{0}/lib/pkgconfig'.format(self.prefix)
with spack.util.environment.set_env(PKG_CONFIG_PATH=pkg_config_path):