On Fri, 2026-07-10 at 08:18 +0200, Nam Cao wrote: > Gabriele Monaco <[email protected]> writes: > > Simplify the test and run the steps expecting no reaction before the one > > expecting reactions. > > This requirement is not clear from the code. I fear a new developer who > wants to introduce a new test case will easily trip over this, or even > us a few months from now. > > Instead of this, how about each test case discards or ignores all > previous reactions?
Fair points, the issue is that we are hammering wwnr, on some systems we may still see printks for long after the monitor was disabled, I tried that grep -m1 trick to mitigate that. To ignore all previous reactions reliably we need to wait for the buffers to flush, something like waiting for a full second for nothing new on the ringbuffer perhaps. I could think of that or at least make this more clear with comments. Thanks, Gabriele
