[ovs-git] [openvswitch/ovs] f7979b: tests: Fix test that tests if the system doesn't s...
GitHub
noreply at github.com
Thu Jun 14 20:47:09 UTC 2018
Branch: refs/heads/master
Home: https://github.com/openvswitch/ovs
Commit: f7979b1181132619ea591f2c9e76fa8c37adeb54
https://github.com/openvswitch/ovs/commit/f7979b1181132619ea591f2c9e76fa8c37adeb54
Author: Timothy Redaelli <tredaelli at redhat.com>
Date: 2018-06-14 (Thu, 14 Jun 2018)
Changed paths:
M tests/atlocal.in
Log Message:
-----------
tests: Fix test that tests if the system doesn't support IPv6
Currently if IPv6 is globally disabled (net.ipv6.conf.all.disable_ipv6=1) or
if IPv6 is disabled on loopback interface (net.ipv6.conf.lo.disable_ipv6=1)
the check doesn't work since no interface have ::1 and EADDRNOTAVAIL is
returned.
This causes a Python exception to be printed, like this:
Traceback (most recent call last):
File "<string>", line 6, in <module>
File "/usr/lib64/python2.7/socket.py", line 228, in meth
return getattr(self._sock,name)(*args)
socket.error: [Errno 99] Cannot assign requested address
In this case HAVE_IPV6 is not set and all IPv6 tests fails.
This commit fixes the problem by check also for EADDRNOTAVAIL.
CC: Ben Pfaff <blp at ovn.org>
Fixes: 5c1d812d7fb3 ("tests: Avoid printing Python exception for hosts without IPv6 support.")
Signed-off-by: Timothy Redaelli <tredaelli at redhat.com>
Signed-off-by: Ben Pfaff <blp at ovn.org>
**NOTE:** This service been marked for deprecation: https://developer.github.com/changes/2018-04-25-github-services-deprecation/
Functionality will be removed from GitHub.com on January 31st, 2019.
More information about the git
mailing list