mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-15 05:18:47 +00:00
Merge pull request #2377 from ajones-rvbd/ajones-issue-2375
tests/isisd: bypass test_fuzz_isis_tlv when inet_ntop is broken
This commit is contained in:
commit
d5a91f926b
@ -2,10 +2,21 @@ import frrtest
|
|||||||
|
|
||||||
import pytest
|
import pytest
|
||||||
import platform
|
import platform
|
||||||
|
import socket
|
||||||
|
|
||||||
if platform.uname()[0] == 'SunOS':
|
|
||||||
|
##
|
||||||
|
# on musl, ntop compresses a single :0: -> :: which is against RFC
|
||||||
|
##
|
||||||
|
def inet_ntop_broken():
|
||||||
|
addr = '1:2:3:4:0:6:7:8'
|
||||||
|
return socket.inet_ntop(socket.AF_INET6,
|
||||||
|
socket.inet_pton(socket.AF_INET6, addr)) != addr
|
||||||
|
|
||||||
|
|
||||||
|
if platform.uname()[0] == 'SunOS' or inet_ntop_broken():
|
||||||
class TestFuzzIsisTLV:
|
class TestFuzzIsisTLV:
|
||||||
@pytest.mark.skipif(True, reason='Test unsupported on SunOS')
|
@pytest.mark.skipif(True, reason='Test unsupported')
|
||||||
def test_exit_cleanly(self):
|
def test_exit_cleanly(self):
|
||||||
pass
|
pass
|
||||||
else:
|
else:
|
||||||
|
Loading…
Reference in New Issue
Block a user