This matches pflog.sh tests and fixes flaky tests found in CI[0].
PR: 289628
Differential D56145
tests/pf/nat: endpoint_independent: wait for tcpdump to start Authored by siva on Sun, Mar 29, 2:45 PM. Tags None Referenced Files
Details This matches pflog.sh tests and fixes flaky tests found in CI[0]. PR: 289628
Diff Detail
Event TimelineComment Actions I already went through this in other test cases. A sleep for a second makes test slower to execute but still doesn't give a 100% protection against flakyness. When tests are executed in parallel on a slow machine you may still have a failure sometimes. Here is the solution I came to so far, poll until tcpdump(1)s are all blocked on "bpf" wait channel. See 38edf96b1787ce3d8c00e4466348dab891c7a9ea. |