We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 55eee32 commit 39b4cc5Copy full SHA for 39b4cc5
1 file changed
tools/hil/hil_serial_expect.sh
@@ -61,7 +61,13 @@ if [[ -n "${ULMK_HIL_OCD:-}" && -n "${ULMK_HIL_OCD_CFG:-}" ]]; then
61
>/dev/null 2>&1 || true
62
fi
63
64
-wait "$CAP"
+wait "$CAP" || true
65
echo "===== uart ====="
66
cat "$OUT"
67
+if ! grep -aE "$PATTERN" "$OUT" >/dev/null 2>&1; then
68
+ rm -f "$OUT"
69
+ echo "FAIL: pattern /$PATTERN/ not found in UART capture" >&2
70
+ exit 1
71
+fi
72
rm -f "$OUT"
73
+echo "PASS: UART matched /$PATTERN/"
0 commit comments