From 8fc48379f09386bdc8bdebd3c41bcd533126fc9d Mon Sep 17 00:00:00 2001
From: Hans Fangohr <hans.fangohr@mpsd.mpg.de>
Date: Wed, 31 May 2023 10:03:39 +0200
Subject: [PATCH] check that we have found gcc locally

---
 tests.py | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/tests.py b/tests.py
index be7c6b2..b3e7cef 100644
--- a/tests.py
+++ b/tests.py
@@ -157,6 +157,8 @@ def test_install_environment(tmp_path):
         .stdout.decode("utf-8")
         .strip()
     )
+    assert len(gcc_ver) > 3, f"Couldn't find gcc {gcc_ver=}"
+
     setup_file = release_base_dir / "spack-environments/spack_setup.sh"
     with open(setup_file, "r") as f:
         lines = f.read().replace(
-- 
GitLab