17 lines
716 B
Bash
17 lines
716 B
Bash
#!/usr/bin/env bash
|
|
set -euo pipefail
|
|
|
|
ROOT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)"
|
|
cd "$ROOT_DIR"
|
|
|
|
TMP_DIR="$(mktemp -d)"
|
|
trap 'rm -rf "$TMP_DIR"' EXIT
|
|
export LLM_DAILY_MEMORY_PATH="$TMP_DIR/2026-05-29.md"
|
|
export REPORT_DATE='2026-05-29'
|
|
|
|
bash scripts/cron_status_report.sh cron precondition_missing 'run_daily.sh failed' 'precondition_missing; 严格真实模式下必须提供 API Key' 'provide missing env/config and rerun' >/tmp/cron_precondition_test.out 2>&1
|
|
|
|
grep -q 'status=precondition_missing' "$LLM_DAILY_MEMORY_PATH"
|
|
grep -q 'precondition_missing; 严格真实模式下必须提供 API Key' "$LLM_DAILY_MEMORY_PATH"
|
|
grep -q 'provide missing env/config and rerun' "$LLM_DAILY_MEMORY_PATH"
|