add user_home path for both windows and linux

This commit is contained in:
Ch3LL 2018-05-30 14:22:10 -04:00
parent 788abf771e
commit 3a691b405f
No known key found for this signature in database
GPG Key ID: 132B55A7C13EFA73

View File

@ -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')