19 lines
654 B
Python
19 lines
654 B
Python
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():
|
|
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"
|