#!/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