Files
uno-q-audio-synth/scripts/run-tests.sh
T
david 1876d8cd42 synth-diagnostic: just run tests, no service management
- 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.
2026-06-24 02:59:14 -07:00

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