summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTamara Dahlgren <35777542+tldahlgren@users.noreply.github.com>2021-07-01 00:17:38 -0700
committerGitHub <noreply@github.com>2021-07-01 09:17:38 +0200
commitca550cd819ca84097eb44933a851abb91499a267 (patch)
treed31b2719fcd8f2b73d021a011b6a1aca6557e0c0
parent8c46e82862948937db08028e1abe6c8b9c5d5fbb (diff)
downloadspack-ca550cd819ca84097eb44933a851abb91499a267.tar.gz
spack-ca550cd819ca84097eb44933a851abb91499a267.tar.bz2
spack-ca550cd819ca84097eb44933a851abb91499a267.tar.xz
spack-ca550cd819ca84097eb44933a851abb91499a267.zip
hdf: replacing use of install test root with new cached tests dir (#24368)
-rw-r--r--var/spack/repos/builtin/packages/hdf/package.py14
1 files changed, 10 insertions, 4 deletions
diff --git a/var/spack/repos/builtin/packages/hdf/package.py b/var/spack/repos/builtin/packages/hdf/package.py
index d12aa812fd..da812fb6b4 100644
--- a/var/spack/repos/builtin/packages/hdf/package.py
+++ b/var/spack/repos/builtin/packages/hdf/package.py
@@ -163,6 +163,12 @@ class Hdf(AutotoolsPackage):
extra_install_tests = 'hdf/util/testfiles'
+ @property
+ def cached_tests_work_dir(self):
+ """The working directory for cached test sources."""
+ return join_path(self.test_suite.current_test_cache_dir,
+ self.extra_install_tests)
+
@run_after('install')
def setup_build_tests(self):
"""Copy the build test files after the package is installed to an
@@ -183,8 +189,8 @@ class Hdf(AutotoolsPackage):
def _test_gif_converters(self):
"""This test performs an image conversion sequence and diff."""
work_dir = '.'
- storm_fn = os.path.join(self.install_test_root,
- self.extra_install_tests, 'storm110.hdf')
+ storm_fn = os.path.join(self.cached_tests_work_dir, 'storm110.hdf')
+
gif_fn = 'storm110.gif'
new_hdf_fn = 'storm110gif.hdf'
@@ -203,8 +209,8 @@ class Hdf(AutotoolsPackage):
def _test_list(self):
"""This test compares low-level HDF file information to expected."""
- storm_fn = os.path.join(self.install_test_root,
- self.extra_install_tests, 'storm110.hdf')
+ storm_fn = os.path.join(self.cached_tests_work_dir,
+ 'storm110.hdf')
test_data_dir = self.test_suite.current_test_data_dir
work_dir = '.'