mirror of
https://github.com/allaunthefox/SilverSight.git
synced 2026-07-31 01:25:21 +00:00
fix(ci): improve PATH handling and pass/fail detection in wolfram_verify.py
This commit is contained in:
parent
d755112c75
commit
0b4e703c0e
1 changed files with 3 additions and 2 deletions
|
|
@ -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]}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue