mirror of
https://github.com/valitydev/salt.git
synced 2024-11-07 08:58:59 +00:00
Merge pull request #41615 from Ch3LL/fix_mac_clock
Fix get_hwclock_aix test on MacOSX
This commit is contained in:
commit
8f9ba1f258
@ -309,8 +309,11 @@ class TimezoneModuleTestCase(TestCase, LoaderModuleMockMixin):
|
||||
:return:
|
||||
'''
|
||||
# Incomplete
|
||||
hwclock = 'localtime'
|
||||
if not os.path.isfile('/etc/environment'):
|
||||
hwclock = 'UTC'
|
||||
with patch.dict(timezone.__grains__, {'os_family': ['AIX']}):
|
||||
assert timezone.get_hwclock() == 'localtime'
|
||||
assert timezone.get_hwclock() == hwclock
|
||||
|
||||
@patch('salt.utils.which', MagicMock(return_value=False))
|
||||
@patch('os.path.exists', MagicMock(return_value=True))
|
||||
|
Loading…
Reference in New Issue
Block a user