mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
add user_home path for both windows and linux
This commit is contained in:
parent
788abf771e
commit
3a691b405f
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Reference in a new issue