This commit is contained in:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user