On system without ipv6 support, CONFIG_IPV6 disabled kernel for
instance, WSGI service testcases for ipv6 would fail for "[Errno 97]
Address family not supported by protocol".
Since there is no easy way to detect actual ipv6 support,
socket.has_ipv6 not working for this case, simply skip ipv6 tests if
errno.EAFNOSUPPORT happens.
Reviewed: https:/ /review. openstack. org/31629 github. com/openstack/ nova/commit/ a24d3dabc1f4ca5 06ab6d542e4ec1d 87bbdd09b8
Committed: http://
Submitter: Jenkins
Branch: master
commit a24d3dabc1f4ca5 06ab6d542e4ec1d 87bbdd09b8
Author: Qiu Yu <email address hidden>
Date: Thu Jun 6 23:45:41 2013 +0800
Skip ipv6 tests on system without ipv6 support
On system without ipv6 support, CONFIG_IPV6 disabled kernel for
instance, WSGI service testcases for ipv6 would fail for "[Errno 97]
Address family not supported by protocol".
Since there is no easy way to detect actual ipv6 support, EAFNOSUPPORT happens.
socket.has_ipv6 not working for this case, simply skip ipv6 tests if
errno.
Fixes: bug 1174404
Change-Id: I9fa8653f5ccfbc b8c31c51bfda137 cb58388afde