adios2: fix smoke test (#49199)

This commit is contained in:
Vicente Bolea 2025-03-11 13:15:22 -04:00 committed by GitHub
parent 2aab567782
commit 64ba324b4a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -395,6 +395,7 @@ def test_examples(self):
# Create the build tree within this spec's test stage dir so it gets
# cleaned up automatically
build_dir = tempfile.mkdtemp(dir=test_stage_dir)
cmake = Executable(spec["cmake"].prefix.bin.cmake)
std_cmake_args = []
@ -409,7 +410,7 @@ def test_examples(self):
self, "test_examples_build", purpose="build example against installed adios2"
):
cmake(src_dir, *std_cmake_args)
make()
cmake(*(["--build", "."]))
for p in built_programs:
exe = which(join_path(".", p))