From 6a6c1c53ea3e1c6c7d5767b8694ded8031bdf31a Mon Sep 17 00:00:00 2001 From: W4HO <87742609+W4HO-ham@users.noreply.github.com> Date: Thu, 29 Oct 2026 06:09:23 -0647 Subject: [PATCH] omamobile-audio tests: stage c9's jump comes after the watchdog's first reading The stage c9 jump test still raised the estimate 0.4 s after starting the watchdog, so on a slow runner the watchdog took the raised value as its baseline and never muted (seen on #145). It now waits for the watchdog's start line, as the other jump tests do. --- packages/omamobile-audio/test/all | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/packages/omamobile-audio/test/all b/packages/omamobile-audio/test/all index a694a0928..8fbd24222 100755 --- a/packages/omamobile-audio/test/all +++ b/packages/omamobile-audio/test/all @@ -452,8 +452,11 @@ c9 c9-ok $(val "Top DRE Switch") == on && $(val "Bottom DRE Switch") == on && $(cat "$r/module/snd_soc_cs35l41/parameters/boost_en") == Y ]] || { cat "$r/out" >&2; fail "stage c9 at stock levels, boost on"; } echo 'state: RUNNING' > "$r/asound/card0/pcm5p/sub0/status" -( sleep 0.4; amx cset "name=Bottom DSP1 Protection cd CSPL_TEMPERATURE" 0x00,0x0a,0x00,0x00 >/dev/null ) & -wprep=(OMAMOBILE_SPK_STAGE=c9 OMAMOBILE_SPK_DIGITAL=817 OMAMOBILE_SPK_ANALOG=17 FAKE_ANALOG_MAX=17); watchrun; wait +# as jump(): after the watchdog's first reading, not at a fixed time +rm -f "$r/watch.out" +( for _ in $(seq 1 100); do grep -c 'watchdog: watching' "$r/watch.out" >/dev/null 2>&1 && break; sleep 0.05; done + sleep 0.3; amx cset "name=Bottom DSP1 Protection cd CSPL_TEMPERATURE" 0x00,0x0a,0x00,0x00 >/dev/null ) & +wprep=(OMAMOBILE_SPK_STAGE=c9 OMAMOBILE_SPK_DIGITAL=817 OMAMOBILE_SPK_ANALOG=17 FAKE_ANALOG_MAX=17); WATCH_N=60 watchrun; wait ((rc == 1)) && muted && grep -c 'jumped 15.0 C' "$r/run/speaker-protection" >/dev/null || { cat "$r/watch.out" >&2; fail "watchdog: in stage c9 a 15 C jump of the estimate mutes"; } c9 c9-noparam noparam; check_refused_early "c9 without speaker_protection=1" c9 c9-nostamp '' nostamp; check_refused_early "c9 without a stamp"