papi: fix error finding gmake during post-install testing (#48592)
This commit is contained in:
parent
a754341f6c
commit
0d3667175a
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user