fix: complete salvaged cronjob dependency check

Add regression coverage for cronjob availability and import shutil for the crontab PATH check added from PR #1380.
This commit is contained in:
teknium1 2026-03-14 21:38:56 -07:00
parent 861869cb48
commit f6ff6639e8
2 changed files with 21 additions and 1 deletions

View file

@ -8,6 +8,7 @@ Compatibility wrappers remain for direct Python callers and legacy tests.
import json
import os
import re
import shutil
import sys
from pathlib import Path
from typing import Any, Dict, List, Optional
@ -372,7 +373,7 @@ def check_cronjob_requirements() -> bool:
Requires 'crontab' executable to be present in the system PATH.
Available in interactive CLI mode and gateway/messaging platforms.
"""
# Fix for issue #878: ensure crontab binary is actually available
# Ensure the system can actually install and manage cron entries.
if not shutil.which("crontab"):
return False