papi: fix error finding gmake during post-install testing (#48592)

This commit is contained in:
G-Ragghianti 2025-01-28 06:51:10 -05:00 committed by GitHub
parent a754341f6c
commit 0d3667175a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -76,6 +76,7 @@ class Papi(AutotoolsPackage, ROCmPackage):
depends_on("lm-sensors", when="+lmsensors")
depends_on("cuda", when="+cuda")
depends_on("cuda", when="+nvml")
depends_on("bc", when="+cuda", type="build")
depends_on("hsa-rocr-dev", when="+rocm")
depends_on("rocprofiler-dev", when="+rocm")
depends_on("llvm-amdgpu", when="+rocm")
@ -229,6 +230,7 @@ def test_smoke(self):
raise SkipTest("Skipping smoke tests, directory doesn't exist")
with working_dir(test_dir, create=False):
with spack.util.environment.set_env(PAPIROOT=self.prefix):
make = self.spec["gmake"].command
make()
exe_simple = which("simple")
exe_simple()