fix(ci): add Nix/Cargo paths to wolfram_verify tool search

This commit is contained in:
allaun 2026-06-30 18:17:45 -05:00
parent 59a236db73
commit d755112c75

View file

@ -54,7 +54,10 @@ def run_port_tests():
for name, cmd, wd, env_add in ports:
exe = cmd[0]
if not shutil.which(exe.split()[0] if '/' in exe else exe):
# Look in PATH that includes common Nix/cargo locations
search_path = os.environ.get("PATH", "") + ":/home/allaun/.nix-profile/bin:/home/allaun/.cargo/bin:/usr/local/go/bin"
exe_path = shutil.which(exe.split()[0] if '/' in exe else exe, path=search_path)
if not exe_path:
results[name] = {"passed": False, "skipped": True, "reason": f"{exe} not found"}
continue
try: