Files
uno-q-audio-synth/scripts/run-tests.sh
T
david b445c272fb add boot-time synth-diagnostic.service
- synth-diagnostic.service: runs test-unit.py before pipeline services
- Type=oneshot, After=prometheus-exporter, Before=pipeline services
- Pipeline services: After=synth-diagnostic
- deploy: restart prometheus-exporter → start synth-diagnostic → restart pipeline
- install.sh: includes synth-diagnostic in SERVICES array
2026-06-24 02:48:40 -07:00

19 lines
482 B
Bash

#!/bin/bash
# run-tests.sh — wrapper for test-unit.py with exit code mapping
set -euo pipefail
BOARD="${BOARD_HOST:-192.168.9.167}"
cd /home/arduino/uno-q-audio-synth
echo "[diag] Running synth pipeline diagnostics against $BOARD..."
python3 scripts/test-unit.py "$BOARD"
exit_code=$?
if [ $exit_code -eq 0 ]; then
echo "[diag] All tests PASSED — pipeline healthy"
else
echo "[diag] Tests FAILED (exit $exit_code) — check dashboard for details"
fi
exit $exit_code