summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIlya Maximets <i.maximets@ovn.org>2019-11-01 22:53:03 +0100
committerIlya Maximets <i.maximets@ovn.org>2019-11-01 23:46:47 +0100
commit5ae6f976d28a973303424183d36d6e89cfdf0dd2 (patch)
treec4da11d0b8f93ecb50beaf4cc7a24be28f689567
parent3e613cd81ce77b5c3da2e9f11a87830bec849bce (diff)
downloadopenvswitch-5ae6f976d28a973303424183d36d6e89cfdf0dd2.tar.gz
travis: Workaround skipping of IPv6 tests.
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@ovn.org> Acked-by: Ben Pfaff <blp@ovn.org>
-rwxr-xr-x.travis/linux-prepare.sh5
1 files changed, 5 insertions, 0 deletions
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