magma: move the execution of stand-alone tests to preferred directory (#28895)

This commit is contained in:
G-Ragghianti 2022-02-14 05:19:45 -05:00 committed by GitHub
parent 9649246764
commit aa6e725633
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -164,7 +164,7 @@ def cache_test_sources(self):
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):