]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
tests/sys/netgraph: Further CI fixes
authorAlex Richardson <arichardson@FreeBSD.org>
Fri, 19 Mar 2021 18:34:29 +0000 (18:34 +0000)
committerAlex Richardson <arichardson@FreeBSD.org>
Fri, 19 Mar 2021 18:34:30 +0000 (18:34 +0000)
commit7dd1f932c1f51bfe10da7bc8875879cdcdd40821
treed918aceeeff983e848aca13c87d5f12cc458abad
parentd76f6b8e7389b2b8a35c4b6f3859365ba05c7e90
tests/sys/netgraph: Further CI fixes

I was trying to debug why this test is working locally but failing in CI.
While doing so I made some small changes to allow running it with set -e.

It turns out the problem is that find_iface does not return anything in
Jenkins, so all following tests fail with obscure error messages.
To handle this case exit early if $eth is empty.

Reviewed By: lwhsu
Differential Revision: https://reviews.freebsd.org/D29340
tests/sys/netgraph/ng_macfilter_test.sh