mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Merge pull request #47408 from Ch3LL/skip_diskusage
Skip status.diskusage integration tests on macsox
This commit is contained in:
commit
e9c1723175
2 changed files with 4 additions and 2 deletions
|
@ -939,7 +939,7 @@ def diskusage(*args):
|
|||
elif __grains__['kernel'] in ('FreeBSD', 'SunOS'):
|
||||
ifile = __salt__['cmd.run']('mount -p').splitlines()
|
||||
else:
|
||||
ifile = []
|
||||
raise CommandExecutionError('status.diskusage not yet supported on this platform')
|
||||
|
||||
for line in ifile:
|
||||
comps = line.split()
|
||||
|
|
|
@ -49,7 +49,9 @@ class StatusModuleTest(ModuleCase):
|
|||
status.diskusage
|
||||
'''
|
||||
ret = self.run_function('status.diskusage')
|
||||
if salt.utils.is_windows():
|
||||
if salt.utils.is_darwin():
|
||||
self.assertIn('not yet supported on this platform', ret)
|
||||
elif salt.utils.is_windows():
|
||||
self.assertTrue(isinstance(ret['percent'], float))
|
||||
else:
|
||||
self.assertIn('total', str(ret))
|
||||
|
|
Loading…
Add table
Reference in a new issue