diff --git a/tests/integration/ssh/test_grains.py b/tests/integration/ssh/test_grains.py index d149725336..37e54eb900 100644 --- a/tests/integration/ssh/test_grains.py +++ b/tests/integration/ssh/test_grains.py @@ -21,5 +21,8 @@ class SSHGrainsTest(SSHCase): test grains.items with salt-ssh ''' ret = self.run_function('grains.items') - self.assertEqual(ret['kernel'], 'Linux') + grain = 'Linux' + if salt.utils.platform.is_darwin(): + grain = 'Darwin' + self.assertEqual(ret['kernel'], grain) self.assertTrue(isinstance(ret, dict))