1876d8cd42
- run-tests.sh: no systemctl start/stop, just runs test-unit.py - synth-diagnostic.service: removed Before=, keeps After=prometheus-exporter (no deadlock risk since run-tests.sh doesn't start services) - justfile deploy: stop pipeline -> restart prometheus -> start synth-diagnostic -> restart pipeline Pipeline starts independently at boot (no After=synth-diagnostic). Diagnostic provides visibility at boot without blocking startup.
18 lines
411 B
Bash
18 lines
411 B
Bash
#!/bin/bash
|
|
# run-tests.sh — run synth pipeline diagnostics
|
|
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"
|
|
else
|
|
echo "[diag] Tests FAILED (exit $exit_code)"
|
|
fi
|
|
|
|
exit $exit_code |