diff --git a/tests/test_utils_elog.py b/tests/test_utils_elog.py index 951a2d665..8b9405895 100644 --- a/tests/test_utils_elog.py +++ b/tests/test_utils_elog.py @@ -2,10 +2,17 @@ import os import shutil import sys +# ✅ Forcer l'ajout de ~/.local/bin dans le PATH pour ce test os.environ["PATH"] = os.path.expanduser("~/.local/bin") + ":" + os.environ["PATH"] def test_elogd_is_available(): - sys.stderr.write("Current PATH:", os.environ["PATH"]) - -def test_elogd_is_available(): - assert shutil.which("elogd") is not None, "elogd is not installed or not in PATH" \ No newline at end of file + path = os.environ["PATH"] + elogd_path = os.path.expanduser("~/.local/bin/elogd") + which = shutil.which("elogd") + + # ✅ Impressions visibles dans les logs GitHub Actions + sys.stderr.write(f"\n[DEBUG] PATH = {path}\n") + sys.stderr.write(f"[DEBUG] elogd exists: {os.path.exists(elogd_path)}\n") + sys.stderr.write(f"[DEBUG] which elogd = {which}\n") + + assert which is not None, "elogd is not installed or not in PATH"