fix(ci): improve PATH handling and pass/fail detection in wolfram_verify.py

This commit is contained in:
allaun 2026-06-30 18:18:43 -05:00
parent d755112c75
commit 0b4e703c0e

View file

@ -61,9 +61,10 @@ def run_port_tests():
results[name] = {"passed": False, "skipped": True, "reason": f"{exe} not found"}
continue
try:
env = {**os.environ, **env_add}
env = {**os.environ, **env_add,
"PATH": os.environ.get("PATH", "") + ":/home/allaun/.nix-profile/bin:/home/allaun/.cargo/bin:/usr/local/go/bin"}
r = subprocess.run(cmd, capture_output=True, text=True, timeout=120, cwd=SILVER / wd, env=env)
ok = r.returncode == 0 and ("fail" not in r.stdout.lower() and "error" not in r.stdout.lower()[:500])
ok = r.returncode == 0 and "" not in r.stdout
results[name] = {"passed": ok, "output": r.stdout[-300:]}
except Exception as e:
results[name] = {"passed": False, "error": str(e)[:200]}