mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Merge pull request #45634 from Ch3LL/mac-service
Add different service name for Mac 10.13 test
This commit is contained in:
commit
c290b6320b
1 changed files with 3 additions and 0 deletions
|
@ -26,6 +26,7 @@ class ServiceTest(ModuleCase, SaltReturnAssertsMixin):
|
|||
self.service_name = 'cron'
|
||||
cmd_name = 'crontab'
|
||||
os_family = self.run_function('grains.get', ['os_family'])
|
||||
os_release = self.run_function('grains.get', ['osrelease'])
|
||||
self.stopped = False
|
||||
self.running = True
|
||||
if os_family == 'RedHat':
|
||||
|
@ -35,6 +36,8 @@ class ServiceTest(ModuleCase, SaltReturnAssertsMixin):
|
|||
cmd_name = 'systemctl'
|
||||
elif os_family == 'MacOS':
|
||||
self.service_name = 'org.ntp.ntpd'
|
||||
if int(os_release.split('.')[1]) >= 13:
|
||||
self.service_name = 'com.apple.AirPlayXPCHelper'
|
||||
self.stopped = ''
|
||||
self.running = '[0-9]'
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue