Skip to content

Commit

Permalink
Remove remaining use of deprecated test callback (spack#47995)
Browse files Browse the repository at this point in the history
  • Loading branch information
tldahlgren authored Dec 10, 2024
1 parent 478647f commit 466c3ab
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions lib/spack/docs/packaging_guide.rst
Original file line number Diff line number Diff line change
Expand Up @@ -5137,7 +5137,7 @@ other checks.
- Not applicable
* - :ref:`PythonPackage <pythonpackage>`
- Not applicable
- ``test`` (module imports)
- ``test_imports`` (module imports)
* - :ref:`QMakePackage <qmakepackage>`
- ``check`` (``make check``)
- Not applicable
Expand All @@ -5146,7 +5146,7 @@ other checks.
- Not applicable
* - :ref:`SIPPackage <sippackage>`
- Not applicable
- ``test`` (module imports)
- ``test_imports`` (module imports)
* - :ref:`WafPackage <wafpackage>`
- ``build_test`` (must be overridden)
- ``install_test`` (must be overridden)
Expand Down
2 changes: 1 addition & 1 deletion var/spack/repos/builtin/packages/py-anuga/package.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ def setup_run_environment(self, env):
if self.run_tests:
env.prepend_path("PATH", self.spec["mpi"].prefix.bin)

install_time_test_callbacks = ["test", "installtest"]
install_time_test_callbacks = ["test_imports", "installtest"]

def installtest(self):
python("runtests.py", "--no-build")
2 changes: 1 addition & 1 deletion var/spack/repos/builtin/packages/py-datalad/package.py
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ class PyDatalad(PythonPackage):
# for version @:0.17
conflicts("~metadata-extra", when="+full")

install_time_test_callbacks = ["test", "installtest"]
install_time_test_callbacks = ["test_imports", "installtest"]

def installtest(self):
datalad = Executable(self.prefix.bin.datalad)
Expand Down

0 comments on commit 466c3ab

Please sign in to comment.