Install test root update: old to new API (#45491)

* convert install_test_root from old to new API
This commit is contained in:
AcriusWinter 2024-08-08 13:01:06 -07:00 committed by GitHub
parent 546e0925b0
commit 7bec524dd5
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 4 additions and 4 deletions

View File

@ -129,7 +129,7 @@ def setup_smoke_test(self):
if self.spec.satisfies("@:2.2.0"):
return
install_tree(
self.prefix.share.heffte.testing, join_path(self.install_test_root, "testing")
self.prefix.share.heffte.testing, join_path(install_test_root(self), "testing")
)
def test_make_test(self):

View File

@ -392,7 +392,7 @@ def setup_build_tests(self):
cmake_source_path,
"-DSPACK_PACKAGE_SOURCE_DIR:PATH={0}".format(self.stage.source_path),
"-DSPACK_PACKAGE_TEST_ROOT_DIR:PATH={0}".format(
join_path(self.install_test_root, cmake_out_path)
join_path(install_test_root(self), cmake_out_path)
),
"-DSPACK_PACKAGE_INSTALL_DIR:PATH={0}".format(self.prefix),
]

View File

@ -59,7 +59,7 @@ def test_chainermn(self):
if "+mn" not in self.spec:
raise SkipTest("Test only supported when built with +mn")
mnist_file = join_path(self.install_test_root.examples.chainermn.mnist, "train_mnist.py")
mnist_file = join_path(install_test_root(self).examples.chainermn.mnist, "train_mnist.py")
mpirun = which(self.spec["mpi"].prefix.bin.mpirun)
opts = ["-n", "4", python.path, mnist_file, "-o", "."]
env["OMP_NUM_THREADS"] = "4"

View File

@ -122,7 +122,7 @@ def cmake_args(self):
@run_after("install")
def setup_smoke_test(self):
install_tree(
self.prefix.share.Tasmanian.testing, join_path(self.install_test_root, "testing")
self.prefix.share.Tasmanian.testing, join_path(install_test_root(self), "testing")
)
def test_make_test(self):