Update tests/test_utils_elog.py
Run CI Tests / test (push) Successful in 1m3s

This commit is contained in:
2025-08-06 16:00:55 +02:00
parent c10cbc68d6
commit 24aeb399c1
+11 -4
View File
@@ -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"
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"