Skip to content

Commit

Permalink
Merge pull request #52568 from dmurphy18/aix_ssh_tests
Browse files Browse the repository at this point in the history
Initial support for running tests on AIX
  • Loading branch information
Ch3LL authored Apr 17, 2019
2 parents 8830bd8 + 880375c commit e906aff
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 @@ -17,6 +17,7 @@


@skipIf(salt.utils.platform.is_windows(), 'minion is windows')
@skipIf(salt.utils.platform.is_aix(), 'minion is AIX')
class ManTest(ModuleCase):
rootdir = os.path.join(TMP, 'mantest')
# Map filenames to search strings which should be in the manpage
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 e906aff

Please sign in to comment.