summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Haller <thaller@redhat.com>2019-04-07 12:19:02 +0200
committerThomas Haller <thaller@redhat.com>2019-04-07 12:58:08 +0200
commita5869d1b354bb32c0718cbe7872cb2fe844bcf10 (patch)
tree5d698d782f405501605e42f5c31c7ae7627d67c3
parentaae9f97e192e94d3f03fed7ddff59a9e54f5c9a7 (diff)
downloadNetworkManager-a5869d1b354bb32c0718cbe7872cb2fe844bcf10.tar.gz
gitlab-ci: run unit tests for n-acd with eBPF disabled
Enabling eBPF causes src/devices/tests/test-acd to fail: strace: bpf(BPF_MAP_CREATE, {map_type=BPF_MAP_TYPE_HASH, key_size=4, value_size=1, max_entries=8, map_flags=0, inner_map_fd=0, map_name="", map_ifindex=0, btf_fd=0, btf_key_type_id=0, btf_value_type_id=0}, 112) = -1 EPERM (Operation not permitted) NetworkManager-Message: 10:07:04.404: <warn> [1554631624.4046] acd[0xa2b400,10]: couldn't init ACD for announcing addresses on interface 'nm-test-veth0': Operation not permitted Interestingly it does not always fail. Seems to depend on the kernel which is used in the containerized test environments of gitlab-ci. For now, just disable eBPF and use the fallback implementation.
-rwxr-xr-xcontrib/scripts/nm-ci-run.sh4
1 files changed, 4 insertions, 0 deletions
diff --git a/contrib/scripts/nm-ci-run.sh b/contrib/scripts/nm-ci-run.sh
index 7072933677..0ecdaa0384 100755
--- a/contrib/scripts/nm-ci-run.sh
+++ b/contrib/scripts/nm-ci-run.sh
@@ -98,6 +98,8 @@ run_autotools() {
--enable-tests=yes \
--with-crypto=$_WITH_CRYPTO \
\
+ --with-ebpf=no \
+ \
--with-libnm-glib=yes \
--with-iwd=yes \
--with-ofono=yes \
@@ -167,6 +169,8 @@ run_meson() {
-D crypto=$_WITH_CRYPTO \
-D docs=$_WITH_DOCS \
\
+ -D ebpf=false \
+ \
-D libnm_glib=true \
-D iwd=true \
-D ofono=true \