mirror of
https://github.com/valitydev/salt.git
synced 2024-11-07 00:55:19 +00:00
add user_home path for both windows and linux
This commit is contained in:
parent
788abf771e
commit
3a691b405f
@ -48,7 +48,7 @@ class UserTest(ModuleCase, SaltReturnAssertsMixin):
|
||||
test for user absent
|
||||
'''
|
||||
user_name = 'salt-test'
|
||||
user_home = os.path.join('tmp', user_name)
|
||||
user_home = '/var/lib/{0}'.format(user_name) if not salt.utils.is_windows() else os.path.join('tmp', user_name)
|
||||
|
||||
def test_user_absent(self):
|
||||
ret = self.run_state('user.absent', name='unpossible')
|
||||
|
Loading…
Reference in New Issue
Block a user