feat(ui,isotest): Group disabled displays into a collapsible section and refactor display item rendering; start a background screenshot loop during isotest and improve test-run cleanup

This commit is contained in:
2026-01-10 20:40:27 +00:00
parent f85241dcd5
commit aedcc3f875
3 changed files with 54 additions and 19 deletions

View File

@@ -63,6 +63,12 @@ fi
cleanup() {
echo ""
echo "Shutting down..."
if [ -n "$SCREENSHOT_LOOP_PID" ] && kill -0 "$SCREENSHOT_LOOP_PID" 2>/dev/null; then
kill "$SCREENSHOT_LOOP_PID" 2>/dev/null || true
fi
if [ -n "$ENABLE_PID" ] && kill -0 "$ENABLE_PID" 2>/dev/null; then
kill "$ENABLE_PID" 2>/dev/null || true
fi
if [ -n "$VIEWER_PID" ] && kill -0 "$VIEWER_PID" 2>/dev/null; then
kill "$VIEWER_PID" 2>/dev/null || true
fi
@@ -212,11 +218,15 @@ if [ -f "$SCRIPT_DIR/enable-displays.py" ]; then
fi
echo "Tips:"
echo " - pnpm run test:screenshot - Take screenshot"
echo " - http://localhost:3006 - Management UI"
echo " - socat - UNIX-CONNECT:.nogit/vm/serial.sock - Serial console (login: ecouser/ecouser)"
echo ""
# Start screenshot loop in background (takes screenshots every 5 seconds)
echo "Starting screenshot loop..."
(while true; do "$SCRIPT_DIR/screenshot.sh" 2>/dev/null; sleep 5; done) &
SCREENSHOT_LOOP_PID=$!
if [ "$AUTO_MODE" = true ]; then
echo "=== Auto mode: waiting for display setup ==="