From 85e853a63d7fed79b931b337bb9e6678077cf8d5 Mon Sep 17 00:00:00 2001 From: Ch3LL Date: Wed, 3 Jan 2018 13:58:28 -0500 Subject: [PATCH] Add darwin value for ssh grain items tests on MacOSX --- tests/integration/ssh/test_grains.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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))