AvanzaCast/e2e/print-log-summary.sh
Cesar Mendivil 8b458a3ddf feat: add initial LiveKit Meet integration with utility scripts, configs, and core components
- Add Next.js app structure with base configs, linting, and formatting
- Implement LiveKit Meet page, types, and utility functions
- Add Docker, Compose, and deployment scripts for backend and token server
- Provide E2E and smoke test scaffolding with Puppeteer and Playwright helpers
- Include CSS modules and global styles for UI
- Add postMessage and studio integration utilities
- Update package.json with dependencies and scripts for development and testing
2025-11-20 12:50:38 -07:00

16 lines
526 B
Bash
Executable File

#!/usr/bin/env bash
# e2e/print-log-summary.sh
# Usage: ./print-log-summary.sh [N]
# Prints the last N entries from e2e/LOG.md (default 5 entries)
set -euo pipefail
N=${1:-5}
LOG_FILE="$(dirname "$0")/LOG.md"
if [ ! -f "$LOG_FILE" ]; then
echo "LOG.md not found: $LOG_FILE" >&2
exit 1
fi
# Collect blocks that start with '## '
awk -v RS="^## " 'NR>1{print "## " $0}' "$LOG_FILE" | awk 'BEGIN{count=0} {blocks[count++]=$0} END{start=(count>='"$N"')?(count-"$N"):"0"; for(i=start;i<count;i++) {printf "%s\n", blocks[i]}}'