#!/bin/bash
# 自动更新测试报告到web目录

SOURCE="/root/.openclaw/workspace/monitor/reports/latest.html"
DEST="/var/www/html/test-report/index.html"

if [ -f "$SOURCE" ]; then
    cp "$SOURCE" "$DEST"
    echo "[$(date '+%Y-%m-%d %H:%M:%S')] 测试报告已更新"
fi
