#!/usr/bin/env bash # Capture structured serial output from the DUT for a fixed duration. # Usage: capture_serial.sh PORT DURATION_S OUTFILE set -euo pipefail cd "$(dirname "$0")/.." PORT=$1; DUR=$2; OUT=$3 exec ./result-py/bin/python3 hil/dut_cmd.py "$PORT" --listen "$DUR" status > "$OUT" 2>&1