hdf: replacing use of install test root with new cached tests dir (#24368)

This commit is contained in:
Tamara Dahlgren 2021-07-01 00:17:38 -07:00 committed by GitHub
parent 8c46e82862
commit ca550cd819
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -163,6 +163,12 @@ def check(self):
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 @@ def _test_check_versions(self):
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 @@ def _test_gif_converters(self):
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 = '.'