diff options
author | Qiu Yu <unicell@gmail.com> | 2013-06-06 23:45:41 +0800 |
---|---|---|
committer | Qiu Yu <unicell@gmail.com> | 2013-06-07 00:16:27 +0800 |
commit | a24d3dabc1f4ca506ab6d542e4ec1d87bbdd09b8 (patch) | |
tree | 4c28db44afc6d684924983d063b032b46aabc8e4 /nova/utils.py | |
parent | 0d81ea487fa470d928da7481d5a455ed918be6aa (diff) | |
download | nova-a24d3dabc1f4ca506ab6d542e4ec1d87bbdd09b8.tar.gz nova-a24d3dabc1f4ca506ab6d542e4ec1d87bbdd09b8.tar.xz nova-a24d3dabc1f4ca506ab6d542e4ec1d87bbdd09b8.zip |
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,
socket.has_ipv6 not working for this case, simply skip ipv6 tests if
errno.EAFNOSUPPORT happens.
Fixes: bug 1174404
Change-Id: I9fa8653f5ccfbcb8c31c51bfda137cb58388afde
Diffstat (limited to 'nova/utils.py')
0 files changed, 0 insertions, 0 deletions