Skip to content

Commit

Permalink
Install test root update: old to new API (spack#45491)
Browse files Browse the repository at this point in the history
* convert install_test_root from old to new API
  • Loading branch information
AcriusWinter authored Aug 8, 2024
1 parent 546e092 commit 7bec524
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion var/spack/repos/builtin/packages/heffte/package.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down
2 changes: 1 addition & 1 deletion var/spack/repos/builtin/packages/kokkos/package.py
Original file line number Diff line number Diff line change
Expand Up @@ -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),
]
Expand Down
2 changes: 1 addition & 1 deletion var/spack/repos/builtin/packages/py-chainer/package.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
2 changes: 1 addition & 1 deletion var/spack/repos/builtin/packages/tasmanian/package.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down

0 comments on commit 7bec524

Please sign in to comment.