From d9265765c5c2320906509c9d78cb48f55627ab18 Mon Sep 17 00:00:00 2001 From: Thomas Krijnen Date: Thu, 28 Aug 2025 15:40:38 +0200 Subject: [PATCH] Show hdf5 build errors --- nix/build-all.py | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/nix/build-all.py b/nix/build-all.py index 8a30153af9..40f4e11170 100644 --- a/nix/build-all.py +++ b/nix/build-all.py @@ -562,10 +562,16 @@ def build_dependency( sp.run(shell, shell=True, check=True, cwd=extract_dir) if mode == "ctest": - run( - ["ctest", "-S", "HDF5config.cmake,BUILD_GENERATOR=Unix", "-C", BUILD_CFG, "-V", "-O", "hdf5.log"], - cwd=extract_dir, - ) + try: + run( + ["ctest", "-S", "HDF5config.cmake,BUILD_GENERATOR=Unix", "-C", BUILD_CFG, "-V", "-O", "hdf5.log"], + cwd=extract_dir, + ) + except Exception as e: + print("-" * 70) + print(open(os.path.join(extract_dir, 'hdf5.log'))) + print("-" * 70) + raise e run([tar, "-xf", kwargs["ctest_result"] + ".tar.gz"], cwd=os.path.join(extract_dir, "build")) shutil.copytree( os.path.join(extract_dir, "build", kwargs["ctest_result"], kwargs["ctest_result_path"]),