Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 1 Sep 2021 16:13:48 GMT
From:      Kristof Provost <kp@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org
Subject:   git: d491b42535db - main - pf tests: altq:codel_bridge requires if_bridge
Message-ID:  <202109011613.181GDm6H073468@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by kp:

URL: https://cgit.FreeBSD.org/src/commit/?id=d491b42535db50693eac5946557f7527f9903b4b

commit d491b42535db50693eac5946557f7527f9903b4b
Author:     Kristof Provost <kp@FreeBSD.org>
AuthorDate: 2021-09-01 14:09:14 +0000
Commit:     Kristof Provost <kp@FreeBSD.org>
CommitDate: 2021-09-01 14:13:11 +0000

    pf tests: altq:codel_bridge requires if_bridge
    
    Check that the bridge module is loaded before running this test.
    It likely will be (as a result of running the bridge tests), but if it's
    not we'll get spurious failures.
    
    MFC after:      3 days
    Sponsored by:   Rubicon Communications, LLC ("Netgate")
---
 tests/sys/netpfil/pf/altq.sh | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/tests/sys/netpfil/pf/altq.sh b/tests/sys/netpfil/pf/altq.sh
index 2b5b1828595f..0ced82a3a942 100644
--- a/tests/sys/netpfil/pf/altq.sh
+++ b/tests/sys/netpfil/pf/altq.sh
@@ -156,6 +156,9 @@ codel_bridge_body()
 {
 	altq_init
 	is_altq_supported codel
+	if ! kldstat -q -m if_bridge; then
+		atf_skip "This test requires if_bridge"
+	fi
 
 	epair=$(vnet_mkepair)
 	ifconfig ${epair}a 192.0.2.1/24 up



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202109011613.181GDm6H073468>