hdf: replacing use of install test root with new cached tests dir (#24368)
This commit is contained in:
parent
8c46e82862
commit
ca550cd819
@ -163,6 +163,12 @@ def check(self):
|
|||||||
|
|
||||||
extra_install_tests = 'hdf/util/testfiles'
|
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')
|
@run_after('install')
|
||||||
def setup_build_tests(self):
|
def setup_build_tests(self):
|
||||||
"""Copy the build test files after the package is installed to an
|
"""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):
|
def _test_gif_converters(self):
|
||||||
"""This test performs an image conversion sequence and diff."""
|
"""This test performs an image conversion sequence and diff."""
|
||||||
work_dir = '.'
|
work_dir = '.'
|
||||||
storm_fn = os.path.join(self.install_test_root,
|
storm_fn = os.path.join(self.cached_tests_work_dir, 'storm110.hdf')
|
||||||
self.extra_install_tests, 'storm110.hdf')
|
|
||||||
gif_fn = 'storm110.gif'
|
gif_fn = 'storm110.gif'
|
||||||
new_hdf_fn = 'storm110gif.hdf'
|
new_hdf_fn = 'storm110gif.hdf'
|
||||||
|
|
||||||
@ -203,8 +209,8 @@ def _test_gif_converters(self):
|
|||||||
|
|
||||||
def _test_list(self):
|
def _test_list(self):
|
||||||
"""This test compares low-level HDF file information to expected."""
|
"""This test compares low-level HDF file information to expected."""
|
||||||
storm_fn = os.path.join(self.install_test_root,
|
storm_fn = os.path.join(self.cached_tests_work_dir,
|
||||||
self.extra_install_tests, 'storm110.hdf')
|
'storm110.hdf')
|
||||||
test_data_dir = self.test_suite.current_test_data_dir
|
test_data_dir = self.test_suite.current_test_data_dir
|
||||||
work_dir = '.'
|
work_dir = '.'
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user