QMakeBuilder: fix bug introduced during multi-bs refactor (#34683)

This commit is contained in:
Adam J. Stewart 2022-12-23 13:57:44 -06:00 committed by GitHub
parent 4a43522763
commit 7975e0afbc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -81,6 +81,6 @@ def install(self, pkg, spec, prefix):
def check(self):
"""Search the Makefile for a ``check:`` target and runs it if found."""
with working_dir(self.build_directory):
self._if_make_target_execute("check")
self.pkg._if_make_target_execute("check")
spack.builder.run_after("build")(execute_build_time_tests)