[Bug 260461] sys.net.if_bridge_test.span failing in CI

From: <bugzilla-noreply_at_freebsd.org>
Date: Wed, 09 Nov 2022 12:10:32 UTC

--- Comment #6 from commit-hook@FreeBSD.org ---
A commit in branch stable/13 references this bug:


commit 1b43f8cd07fc186652ad369ea189498308ce1b4e
Author:     Kristof Provost <kp@FreeBSD.org>
AuthorDate: 2022-11-02 10:55:39 +0000
Commit:     Kristof Provost <kp@FreeBSD.org>
CommitDate: 2022-11-09 08:17:00 +0000

    tests: make sniffer more robust

    The Sniffer class is often used by test tools such as pft_ping to verify
    that packets actually get sent where they're expected.

    It starts a background thread to capture packets, but this thread needs
    some time to start, leading to intermittent test failures when the
    capture doesn't start before the relevant packet is sent.

    Add a semaphore to ensure the Sniffer constructor doesn't return until
    the capture is actually running.

    PR:             260461
    MFC after:      1 week
    Sponsored by:   Rubicon Communications, LLC ("Netgate")

    (cherry picked from commit 67557372dfef87eb94681a97a4157198efe21992)

 tests/sys/netpfil/common/sniffer.py | 9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)

You are receiving this mail because:
You are the assignee for the bug.