From 0b4e703c0e7e0c029662a45d256efd22069cfd55 Mon Sep 17 00:00:00 2001 From: allaun Date: Tue, 30 Jun 2026 18:18:43 -0500 Subject: [PATCH] fix(ci): improve PATH handling and pass/fail detection in wolfram_verify.py --- scripts/wolfram_verify.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/scripts/wolfram_verify.py b/scripts/wolfram_verify.py index cfe5d6cc..e7d9b692 100644 --- a/scripts/wolfram_verify.py +++ b/scripts/wolfram_verify.py @@ -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]}