]> www.infradead.org Git - users/dwmw2/openconnect.git/commitdiff
ppp-over-tls tests: fix PPP-over-IPv6 tests on Ubuntu
authorDaniel Lenski <dlenski@gmail.com>
Mon, 29 Mar 2021 02:55:18 +0000 (19:55 -0700)
committerDaniel Lenski <dlenski@gmail.com>
Mon, 29 Mar 2021 03:13:01 +0000 (20:13 -0700)
For reasons that are unclear, but probably also unimportant, IPv6 is disabled by default on this CI
image (verified in https://gitlab.com/openconnect/openconnect/-/jobs/1135199323#L335), and this will
cause PPP tests using IPv6 to fail.

Explicitly enabling IPv6 with sysctl resolves this.

Signed-off-by: Daniel Lenski <dlenski@gmail.com>
.gitlab-ci.yml

index 9340341979ccea9740eca16d6e89c88a7a78710f..dcae72f212831554a767790fd25412638d771fc2 100644 (file)
@@ -344,6 +344,10 @@ Ubuntu18.04/GnuTLS:
   - make -j4
 # we don't want pppd to invoke any actual connection scripts
   - mv /etc/ppp /etc/ppp.DISABLED
+# For reasons that are unclear, but probably also unimportant, IPv6 is disabled by default on this CI
+# image (verified in https://gitlab.com/openconnect/openconnect/-/jobs/1135199323#L335), and this will
+# cause PPP tests using IPv6 to fail. So we must explicitly enable IPv6:
+  - sysctl net.ipv6.conf.all.disable_ipv6=0
 # UTF-8 support is not available
   - make VERBOSE=1 XFAIL_TESTS="auth-nonascii" -j4 check
   tags:
@@ -364,6 +368,10 @@ Ubuntu18.04/OpenSSL:
   - make -j4
 # we don't want pppd to invoke any actual connection scripts
   - mv /etc/ppp /etc/ppp.DISABLED
+# For reasons that are unclear, but probably also unimportant, IPv6 is disabled by default on this CI
+# image (verified in https://gitlab.com/openconnect/openconnect/-/jobs/1135199323#L335), and this will
+# cause PPP tests using IPv6 to fail. So we must explicitly enable IPv6:
+  - sysctl net.ipv6.conf.all.disable_ipv6=0
 # UTF-8 support is not available
 # OpenSSL 1.1.0 disables 3DES and RC4 by default (https://www.openssl.org/blog/blog/2016/08/24/sweet32/)
   - make VERBOSE=1 XFAIL_TESTS="auth-nonascii obsolete-server-crypto" -j4 check