Skip to content

Commit

Permalink
Porting PR saltstack#52568 to 2019.2.1
Browse files Browse the repository at this point in the history
  • Loading branch information
garethgreenaway committed Sep 19, 2019
1 parent 8d4d5ea commit 3df2129
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
5 changes: 3 additions & 2 deletions tests/integration/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -104,15 +104,16 @@ def get_unused_localhost_port():

DARWIN = True if sys.platform.startswith('darwin') else False
BSD = True if 'bsd' in sys.platform else False
AIX = True if sys.platform.startswith('aix') else False

if DARWIN and port in _RUNTESTS_PORTS:
if (AIX or DARWIN) and port in _RUNTESTS_PORTS:
port = get_unused_localhost_port()
usock.close()
return port

_RUNTESTS_PORTS[port] = usock

if DARWIN or BSD:
if DARWIN or BSD or AIX:
usock.close()

return port
Expand Down
1 change: 1 addition & 0 deletions tests/integration/doc/test_man.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@


@skipIf(salt.utils.platform.is_windows(), 'minion is windows')
@skipIf(salt.utils.platform.is_aix(), 'minion is AIX')
class ManTest(ModuleCase):
# Map filenames to search strings which should be in the manpage
manpages = {
Expand Down
2 changes: 2 additions & 0 deletions tests/integration/ssh/test_grains.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,5 +24,7 @@ def test_grains_items(self):
grain = 'Linux'
if salt.utils.platform.is_darwin():
grain = 'Darwin'
if salt.utils.platform.is_aix():
grain = 'AIX'
self.assertEqual(ret['kernel'], grain)
self.assertTrue(isinstance(ret, dict))

0 comments on commit 3df2129

Please sign in to comment.