[ovs-dev] [PATCH 1/2] travis: Workaround skipping of IPv6 tests.

Ilya Maximets i.maximets at ovn.org
Fri Nov 1 22:38:34 UTC 2019


IPv6 support disabled in TravisCI images but supported by kernel.
So, we could enable it in order to not skip unit tests.
We are not trying to communicate over network with IPv6, so this
should not make any harm.

Related issue: https://github.com/travis-ci/travis-ci/issues/8891

Signed-off-by: Ilya Maximets <i.maximets at ovn.org>
---
 .travis/linux-prepare.sh | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/.travis/linux-prepare.sh b/.travis/linux-prepare.sh
index e546d32cb..9e3ac0df7 100755
--- a/.travis/linux-prepare.sh
+++ b/.travis/linux-prepare.sh
@@ -20,3 +20,8 @@ if [ "$M32" ]; then
     # This will remove the 64-bit libunwind and install 32-bit version.
     sudo apt-get install -y libunwind-dev:i386
 fi
+
+# IPv6 is supported by kernel but disabled in TravisCI images:
+#   https://github.com/travis-ci/travis-ci/issues/8891
+# Enable it to avoid skipping of IPv6 related tests.
+sudo sysctl -w net.ipv6.conf.all.disable_ipv6=0
-- 
2.17.1



More information about the dev mailing list